Membership.GetUser() fails in Modal dialog
-
Hi, I'm using window.showModalDialog to open a modal dialog. The modal dialog needs get the current user's name. To do this i use Membership.GetUser().UserName; But when the dialog is posted back Membership.GetUser() return null and i can't get the user's name. Does anybody have a clue how to get the user's name? Thanks.
-
Hi, I'm using window.showModalDialog to open a modal dialog. The modal dialog needs get the current user's name. To do this i use Membership.GetUser().UserName; But when the dialog is posted back Membership.GetUser() return null and i can't get the user's name. Does anybody have a clue how to get the user's name? Thanks.
I don't know how with the post back. Bat you could try Session or Cookie
-
I don't know how with the post back. Bat you could try Session or Cookie
try with this http://www.codeproject.com/useritems/How_to_NT_User_Name.asp[^]
Ramana