Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello

I use ASP.NET in my site.

When i login with UserName and Password and use Session

the Session is work correctly , but only after making refresh.

For example, when you login your na,e should show and when you leave the site and return you should see a welcome sentence, but the sentence show only after i make a refresh , if there is no solution for that , maybe there is any code of making 1 refresh in Load_Page.

Thanks

Posted

response.redirect("nameofpageyouwanttoreload.aspx")

 

that'll reload your page from the server. newly created session variables aren't available till after postback.

You can not get ye flask.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...