if i set EnableViewState="false"
then also input data is maintain after postback at the time of using control like
So I just wanted to know bit internal things that if EnableViewState="false"
then how input data is maintain after postback when we are using control like textbox, radio button checkbox etc. please discuss the internal issue.
Thanks.
<%@ Page Language="C#" AutoEventWireup="true" EnableViewState="false" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
<asp:TextBox ID="TextBox1" runat="server"
style="position: relative; top: 0px; left: 0px;"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server"
style="position: absolute; top: 66px; left: 11px; z-index: 1;"></asp:TextBox>
<asp:RadioButton ID="RadioButton1" runat="server" style="position: relative" />
<asp:CheckBox ID="CheckBox1" runat="server" style="position: relative" />
<asp:Button ID="Button1" runat="server" Text="Button" />
</div>
</form>
Input data is maintained because the browser sends the input data to the server on every postback. For example, the textbox on the page has its text sent to the server every time there is a postback. Therefore, the text property does not need to be stored in view state in order to be remembered across postbacks.
For much more information on view state, check out this article: Understanding ASP.NET View State.