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 |
![]() |
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 |
![]() |