ViewState("Name") = txtName.text;
String strName = ViewState("Name").ToString();
<asp:Page MaintainScrollPositionOnPostBack="True/False" />