How to I carried out Textbox value from ViewState when I postback?

Gfuonkzb

New Member
\[quote\] I want to know that how can I trace out the value of Textbox from ViewState.\[/quote\]As user enters any value into \[code\]Textbox\[/code\] and \[code\]click submit button\[/code\] because of \[code\]postback\[/code\] \[code\]Textbox\[/code\] value disappears , But if I used \[code\]ViewState\[/code\] in this case , then is there any way to see or display that value from \[code\]Viewstate\[/code\]?\[code\]<html><body> <form id="form1" runat="server"> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" / </form></body></html>protected void Button1_Click(object sender, EventArgs e){ TextBox1.Text += "X";}\[/code\]
 
Back
Top