Jump to content

enableviewstate="false"


Recommended Posts

When you reload a page, firefox tends to keep the information just in case you didn't want to lose it. I suppose that can be changed somewhere in the browser settings. You can try to detect if it's checked when the page loads, using Javascript.

Edited by Ingolme
Link to post
Share on other sites
When you reload a page, firefox tends to keep the information just in case you didn't want to lose it. I suppose that can be changed somewhere in the browser settings. You can try to detect if it's checked when the page loads, using Javascript.
I prefer not to ask users to change their settings, and using JS will significantly increase loading time (the page contains hundreds of inputs). Are you sure there's nothing to change that? Edited by 10 weber
Link to post
Share on other sites

It is possible using a high level language such as VB, C++, C#

Sub Page_Load(sender As Object, e As System.EventArgs)   DataBind()   ' Set EnableViewState to false to disable saving of view state    ' information.   myControl.EnableViewState = False   If Not IsPostBack Then	  display.Enabled = False   End If End Sub

EnableViewStateHope this helps some.dink

Link to post
Share on other sites

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.

Loading...
×
×
  • Create New...