Anonymous Users Not Working on Load of page From login page

 In a button click i  transfer the user to form1 where  HttpContext.Current.User.Identity.Name.ToString does not have a value on this page until a postback occurs, how do i simulate a postback in code behind?


0
dan_2009
4/29/2009 8:52:58 PM
📁 asp.net.security
📃 27051 articles.
⭐ 1 followers.

💬 1 Replies
👁️‍🗨️ 1643 Views

Hi,

Are you using  Server.Transfer("url");? Method Transfer() will not bring user's credential while redirect page(do not have cookie).

Instead,you can use Response.Redirect("url");

Regards

   


Andrew Zhu
Microsoft online ASP.NET support
Please remember to click €œMark as Answer€ on the post that helps you. This can be beneficial to other community members reading the thread.
0
Andrew
5/5/2009 6:08:50 AM