MaintainState = false

SakuraKaze

New Member
I want a couple of textboxes in a webform to be empty after each round trip to the server, but still want them to be server side so that I can write code against them.<BR>I've tried:<BR><asp:textbox id="tb" MaintainState="false" runat="server"/><BR>and<BR>tb.MaintainState=false; //in Page_Load<BR><BR>After clicking on a server side button with a server side event assigned to it, the form always returns with the contents of the textbox still filled in. Is the value in the textbox considered to be part of the state? Or should I manually wipe the contents of the box with:<BR>tb.Text="";<BR>Thanks,<BR>Brandon
 
Top