You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OboutSuite/AJAXPage/cs_callbackviewstate.aspx.cs

16 lines
522 B

using System;
using System.Web.UI.WebControls;
public class cs_callbackviewstate : OboutInc.oboutAJAXPage
{
protected Label lblViewState;
void Page_Load(object sender, EventArgs e) {
// set the initial ViewState variable value. this is only executed on first load of page
// when there is a postback or callback, IsPostBack is true
if (!Page.IsPostBack)
ViewState["something"] = 1;
// if it's not a callback (aka first load or postback) write the value of the viewstate variable
if (!IsCallback)