How to retrive userName from RedirectFromLoginPage?

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

When I use "FormsAuthentication.RedirectFromLoginPage(userName,
createPersistentCookie)"
to redirect to a web page (like default.aspx), how can I retrive userName in
default.aspx?
 
Hi,

If I understood your issue correctly, you could use the Page.User.Name
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top