Use of "user control" into project server webpart

Microsoft Project

    Next

  • 1. Active cell in Task Usage View
    Hello, I am trying to capture some information in the right pane of the Task Usage View after the user has made changes to the single cells. The problem is that if the user does not make the right selection in the task table on the left side, the information I get from the object model are totally wrong compared to the task the user is actually changing in the right pane. Does anyone know how to make sure the selection on the right pane is correspondant to the selection on the left pane? Thanks for helping!
  • 2. Adding a textbox input to an equation in Treeview
    Hi, I'm currently working in Treeview with multiple nodes, each of which have a textbox. What I want to do is take the inputs from two textboxes on different nodes, enter those values into an equation, and output the answer in a third textbox from a different node. Is there a simple way of doing this? Any suggestions would greatly help. Thank you.
  • 3. How can I make a fake DOS Screen for my final?
    I am wanting to make a table of content page for my final but I want it to look like a DOS Screen, can this be done and how do I do it?
  • 4. Using GetObject with Read Only project file.
    I am trying to incorporate the use of project data in an Excel macro using the "GetObject" command. However, the project is password protected and invokes a dialog box requesting the password or a selection of 'Read Only". How do I automatically select the read only option to avoid manual intervention to keep the macro moving? If this is not an option, then what command(s) should I use to permit the equivalent of the following: Set prj = GetObject("Myproject.mpp") where Myproject.mpp is password protected, and I want to open it as read only and be able to read the contents of the project as data with my excel macro?

Use of "user control" into project server webpart

Postby msnnews.microsoft.com » Fri, 13 Oct 2006 16:56:56 GMT

Hello everybody,

I'm beginning to create webpart on sharepoint 2007 with visual studio 2005.

I wanted to have a design view of what i'm doing so i decided to user "user
control"

in my webpart class i do like this
    InnerControl =
Me.Page.LoadControl("_/Layouts/1033/Shortcut_creation.ascx")

in this ascx file i Have

 <%@ Control Language="VB" CodeFile="shortcut.vb" Inherits="shortcut" %>

I tried to add <%# import %> <%# assembly %>

because shortcut.vb is my webpart class, and this file is in the assembly
(GAC) How can i tell to the usercontrol, that the file who is catching his
events is shortcut.vb from the ASSEMBLY

Thank you in advance for you help

Yal

PS: I don't want to have inline code! 



Re: Use of "user control" into project server webpart

Postby Rod Gill » Tue, 17 Oct 2006 07:06:47 GMT

We're not usually professional developers in this group so I suspect you 
need to post to a SharePoint site with this problem. Project Server 2007uses 
pure WSS3.



-- 

Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more









Similar Threads:

1.WebPart permission issue when using Microsoft.Office.Project.Server.Library

Hello everybody,

in my custom WebPart for Project 2007 Web Access I am using PSI web
services, and some of them need parameters coming from an external
library called "Microsoft.Office.Project.Server.Library".

An example are those two code lines:

using PSLibrary = Microsoft.Office.Project.Server.Library;
PSLibrary.Filter f = new
Microsoft.Office.Project.Server.Library.Filter();

This filter object is used in the ReadResources method of Resource web
service.
What happens is that I get a System.Security.SecurityException exactly
at the second code line.

Example:
System.Security.SecurityException: That assembly does not allow
partially trusted callers.
at
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly
asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle
rmh, SecurityAction action, Object demand, IPermission permThatFailed)
at MyNamespace.ConfigurationSettings.GetResourceData()
at MyNamespace.TestWebPart.OnInit(EventArgs e)
in C:\SharePoint\TestWebPart\TestWebPart.cs:line 147
The action that failed was: LinkDemand
The assembly or AppDomain that failed was:
TestWebPart, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=61f51e230a86efb2
The Zone of the assembly that failed was: MyComputer
The Url of the assembly that failed was:
file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/80/bin/TestWebPart.DLL

While my own assemly TestWebPart.dll has the attribute
"AllowPartiallyTrustedCallers" and does of course not run with "full
trust", I am not allowed to use the
Microsoft.Office.Project.Server.Library because this library does not
allow calles from partially trusted callers like my WebPart.
For a long time I thought my assembly has been meant, but no it is
this Microsoft.Office.Project.Server.Library !

Because I may not run the final WebPart in "full trust" what
Permission do I have to assign to my WebPart in order to use that
Microsoft.Office.Project.Server.Library ? Thanks.

Bye

Termin_Terminator

2.Using PWA Reminder webpart within MOSS My site (seperate servers)

Hi,
I'm trying to get some PWA webpart to work within a seperate MOSS (current 
intranet) environment.

I should install the Project Server binanries on the MOSS server, but with 
no result of getting any of the webparts (reminder webpart). IIS reset dit 
nog work and I also looked if the necessary features were enabled.

How to connect both worlds?

Regards, Amancio

3.WebPart permission issue when using Microsoft.Office.Project.Serve

4.Adjusting Columbn width using webpart hacks

5.Using a PWA 2007 webpart within Sharepoint (outside of PWA)

More specifically, my PWA is located at  
intranet.companyname.com/projectserver/  and I want to create sites using PWA 
web parts at intranet.companyname.com/clientsites/site1/

Jeff

6. inventory control using ms project

7. Frequent crashes of IE when using Active X Control Project Centre

8. Allow Users to Log on Using a Different Windows User Account



Return to Microsoft Project

 

Who is online

Users browsing this forum: No registered users and 57 guest