• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

asp.net button

Mercypoint

Weaksauce
Joined
Oct 22, 2005
Messages
74
Hi,
I have two button in a master page that will allow users to toggle between English and Spanish version for the site. The language variable is stored in a session variable that on a page load, it will take that and load the correct language.
Issue here is that I have some data that I need to store at the viewstate level. How to I change the session variable (post back to the master page) and refresh the content page without doing a response.redirect?

Basically, I need to set the session variable and then do a "click page refresh" action.

Any ideas?
 
Thanks...

I read the difference between Server.Transfer and Response.Redirect. From a quick test, Server.Transfer also seem like it would loose the viewstate data once the server fetch the page.

One thought, is there a way for a code behind from a master page to call a content panel's page onload function?
 
Back
Top