Last post Mar 27, 2007 02:44 AM by donguyen
Feb 27, 2007 08:17 PM|rrobet|LINK
Hi, hopefully someone can help me with this as I am really stuck.
I have created a virtual server under the WSS domain and place all my aspx pages in the folder to be called from WSS site.
By the time I reach to my custom made aspx application, I need to know the user ID so that I can perform permission and other settings in my custom application.
How do I pass the user ID from WSS to my custom made aspx site. Just the user ID will do, I can take it from there.
FYI, I am calling my custom aspx pages under from WSS by clicking on “Modify shared web parts” and amending the “Link” to the address where the aspx page is sitting. E.g /company/folder/file.aspx
Thanks in advance
Feb 28, 2007 06:48 AM|Steve@Planet|LINK
In your custom app use:
string userName = HttpContext.Current.User.Identity.Name;
Feb 28, 2007 07:28 PM|rrobet|LINK
Hi Steve, amazing, didn't think my problem will be solved so soon. Thanks so much.
Mar 27, 2007 02:44 AM|donguyen|LINK
I've still got the problem. Actually, i'm using MOSS 2007. From Sharepoint site, i'm using page viewer webpart to call my custom aspx (c#) page. But its not showing anything?