Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a textbox that I set the EnableViewState property to false. The problem is that it is holding it's state after postbacks. I have other controls that I do this for and they work fine. How can I make it so my textbox doesn't hold it's state after postbacks?

 

Thanks!

Posted

Hi,

 

That's strange behaviour. However I can think of the followings-

 

1. Ensure that the value of the text box in not being set programatically in codebehind or in html code.

 

2. You can always clear the value of the text box programatically.

 

3. Try deleting and adding the textbox again on your page.

 

HTH.

Jitesh

Jitesh Sinha

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...