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.
16 lines
703 B
16 lines
703 B
<%@ Page Language="C#" ASPCOMPAT="TRUE" Debug="true" Inherits="OboutInc.oboutAJAXPage" EnableCallbackViewstate="true" %>
|
|
<script language="C#" runat="server">
|
|
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)
|
|
if (ViewState["something"] != null)
|
|
lblViewState.Text = "ViewState value = " + ViewState["something"].ToString();
|
|
}
|
|
|
|
public string tempFunction() {
|