Groups | Blog | Home
all groups > asp.net webcontrols > october 2003 >

asp.net webcontrols : Problem on Textbox postback in VB.net 2002


pschrader
10/7/2003 9:35:28 AM
Try and use EnableViewState="True" for your TextBox.
Maybe this fixes the problem.

"Tommy Tama@Office" <tamahina@hotmail.com> schrieb im Newsbeitrag
news:O8Cz$SIjDHA.2388@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

Tommy Tama NO[at]SPAM Office
10/7/2003 11:40:12 AM
Hi all,

I have a textbox that use for client inputting the page no.

Here is the asp.net code:
<asp:TextBox id="TextBox2" runat="server" Width="40px"
OnTextChanged="TextBox2_TextChanged" AutoPostBack="True">2</asp:TextBox>

However, when the client enter the page number and hit enter, the page
number catched by server is the original one(i.e. 2),
rather then the number that client entered.

Hope someone can tell me the problem.
Thank you

Tommy Tama NO[at]SPAM Office
10/7/2003 4:16:08 PM
the EnableViewState="True" is the default value and I didn't change it

"pschrader" <pschrader@bieber-gruppe.de> ¦b¶l¥ó
news:eXx$kVKjDHA.1696@TK2MSFTNGP12.phx.gbl ¤¤¼¶¼g...
[quoted text, click to view]

Tommy Tama NO[at]SPAM Office
10/7/2003 4:24:52 PM
solved

"Tommy Tama@Office" <tamahina@hotmail.com> ¦b¶l¥ó
news:eMTEFtKjDHA.3284@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
[quoted text, click to view]

AddThis Social Bookmark Button