Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Registered User Name

Status
Not open for further replies.

gillesnebel

Programmer
Mar 22, 2005
13
0
0
CH
Hi,

I would like to add an external Website (with Content Editor Web Part) but I need registered Username (using Activ Directory) as parameter.

Example:
External Link
Does somebody has any ideas how to realize that?

Thx very much
 
hello,

make you own weppart load the page in a iframe and to get the user name:

Code:
SPSite SiteCollection = new SPSite(<servername>);
SPWeb Web = SiteCollection.OpenWeb(<corect site nothing if root site>);
loginname = Web.CurrentUser.LoginName;

greetings
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top