您的位置:首页 > 编程语言 > ASP

ASP.NET ViewState 实现分析(转贴)

2008-04-25 20:42 447 查看
从ProcessRequest开始

private void ProcessRequest();

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

private void ProcessRequest()

接下来从ProcessRequestMain开始

private void ProcessRequestMain();

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

private void ProcessRequestMain()

internal void LoadPageViewState();

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

internal void LoadPageViewState()

protected virtual object LoadPageStateFromPersistenceMedium();

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

protected virtual object LoadPageStateFromPersistenceMedium()

internal void LoadViewStateRecursive(object savedState);

Declaring Type:

System.Web.UI.Control

Assembly:

System.Web, Version=1.0.5000.0

internal void LoadViewStateRecursive(object savedState)

protected internal virtual void AddedControl(Control control, int index);

Declaring Type:

System.Web.UI.Control

Assembly:

System.Web, Version=1.0.5000.0

protected internal virtual void AddedControl(Control control, int index)

private void ProcessPostData(NameValueCollection postData, bool fBeforeLoad);

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

private void ProcessPostData(NameValueCollection postData, bool fBeforeLoad)

bool IPostBackDataHandler.LoadPostData(string postDataKey, NameValueCollection postCollection);

Declaring Type:

System.Web.UI.WebControls.ImageButton

Assembly:

System.Web, Version=1.0.5000.0

bool IPostBackDataHandler.LoadPostData(string postDataKey, NameValueCollection postCollection)

bool IPostBackDataHandler.LoadPostData(string postDataKey, NameValueCollection postCollection);

Declaring Type:

System.Web.UI.WebControls.TextBox

Assembly:

System.Web, Version=1.0.5000.0

bool IPostBackDataHandler.LoadPostData(string postDataKey, NameValueCollection postCollection)

public virtual void RegisterRequiresRaiseEvent(IPostBackEventHandler control);

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

public virtual void RegisterRequiresRaiseEvent(IPostBackEventHandler control)

internal void RaiseChangedEvents();

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

internal void RaiseChangedEvents()

void IPostBackDataHandler.RaisePostDataChangedEvent();

Declaring Type:

System.Web.UI.WebControls.ImageButton

Assembly:

System.Web, Version=1.0.5000.0

void IPostBackDataHandler.RaisePostDataChangedEvent()

void IPostBackDataHandler.RaisePostDataChangedEvent();

Declaring Type:

System.Web.UI.WebControls.TextBox

Assembly:

System.Web, Version=1.0.5000.0

void IPostBackDataHandler.RaisePostDataChangedEvent()

protected virtual void OnTextChanged(EventArgs e);

Declaring Type:

System.Web.UI.WebControls.TextBox

Assembly:

System.Web, Version=1.0.5000.0

protected virtual void OnTextChanged(EventArgs e)

private void RaisePostBackEvent(NameValueCollection postData);

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

private void RaisePostBackEvent(NameValueCollection postData)

void IPostBackEventHandler.RaisePostBackEvent(string eventArgument);

Declaring Type:

System.Web.UI.WebControls.ImageButton

Assembly:

System.Web, Version=1.0.5000.0

void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)

protected virtual void OnClick(ImageClickEventArgs e);

Declaring Type:

System.Web.UI.WebControls.ImageButton

Assembly:

System.Web, Version=1.0.5000.0

protected virtual void OnClick(ImageClickEventArgs e)

protected virtual void OnCommand(CommandEventArgs e);

Declaring Type:

System.Web.UI.WebControls.ImageButton

Assembly:

System.Web, Version=1.0.5000.0

protected virtual void OnCommand(CommandEventArgs e)

protected void RaiseBubbleEvent(object source, EventArgs args);

Declaring Type:

System.Web.UI.Control

Assembly:

System.Web, Version=1.0.5000.0

protected void RaiseBubbleEvent(object source, EventArgs args)

internal void SavePageViewState();

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

internal void SavePageViewState()

internal object SaveViewStateRecursive();

Declaring Type:

System.Web.UI.Control

Assembly:

System.Web, Version=1.0.5000.0

internal object SaveViewStateRecursive()

protected virtual void SavePageStateToPersistenceMedium(object viewState);

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

protected virtual void SavePageStateToPersistenceMedium(object viewState)

public void RenderControl(HtmlTextWriter writer);

Declaring Type:

System.Web.UI.Control

Assembly:

System.Web, Version=1.0.5000.0

public void RenderControl(HtmlTextWriter writer)

protected override void Render(HtmlTextWriter output);

Declaring Type:

System.Web.UI.HtmlControls.HtmlForm

Assembly:

System.Web, Version=1.0.5000.0

protected override void Render(HtmlTextWriter output)

protected virtual void Render(HtmlTextWriter writer);

Declaring Type:

System.Web.UI.Control

Assembly:

System.Web, Version=1.0.5000.0

protected virtual void Render(HtmlTextWriter writer)

protected override void RenderChildren(HtmlTextWriter writer);

Declaring Type:

System.Web.UI.HtmlControls.HtmlForm

Assembly:

System.Web, Version=1.0.5000.0

protected override void RenderChildren(HtmlTextWriter writer)

internal void OnFormRender(HtmlTextWriter writer, string formUniqueID);

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

internal void OnFormRender(HtmlTextWriter writer, string formUniqueID)

protected virtual void RenderChildren(HtmlTextWriter writer);

Declaring Type:

System.Web.UI.Control

Assembly:

System.Web, Version=1.0.5000.0

protected virtual void RenderChildren(HtmlTextWriter writer)

internal void OnFormPostRender(HtmlTextWriter writer, string formUniqueID);

Declaring Type:

System.Web.UI.Page

Assembly:

System.Web, Version=1.0.5000.0

internal void OnFormPostRender(HtmlTextWriter writer, string formUniqueID)

{

if (this._registeredArrayDeclares != null) //生成客户端脚本数组定义

{

writer.WriteLine();

writer.WriteLine("<script language=\"javascript\" type=\"text/javascript\">\r\n<!--");

writer.Indent++;

IDictionaryEnumerator enumerator = this._registeredArrayDeclares.GetEnumerator();

while (enumerator.MoveNext())

{

writer.Write("var ");

writer.Write(enumerator.Key);

writer.Write(" = new Array(");

IEnumerator enumerator2 = ((ArrayList) enumerator.Value).GetEnumerator();

bool flag = true;

while (enumerator2.MoveNext())

{

if (flag)

{

flag = false;

}

else

{

writer.Write(", ");

}

writer.Write(enumerator2.Current);

}

writer.WriteLine(");");

}

writer.Indent++;

writer.WriteLine("// -->\r\n</script>");

writer.WriteLine();

}

this.RenderHiddenFields(writer); //生成注册的隐藏表单域

if (this._fRequirePostBackScript && !this._fPostBackScriptRendered)

{

this.RenderPostBackScript(writer, formUniqueID); //生成回传脚本

}

this.RenderScriptBlock(writer, this._registeredClientStartupScripts); //生成注册的启动脚本

this._inOnFormRender = false;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: