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;
}
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;
}
相关文章推荐
- ASP.NET ViewState 实现分析(转)
- ASP.NET的页面生存周期和ViewState实现机制
- ASP.Net ViewState的实现
- [转贴]ASP.NET ViewState 初探
- asp.net 生成静态时的过滤viewstate的实现方法
- ASP.Net ViewState的实现
- ASP.Net ViewState的实现
- ASP.NET中EnableViewState详细分析(不同位置设置EnableViewState的效果)
- ASP.Net ViewState的实现内幕
- ASP.Net ViewState的实现
- asp.net 生成静态时的过滤viewstate的实现方法
- ASP.Net ViewState的实现
- ASP.Net ViewState的实现
- ASP.NET中的ViewState内容格式分析
- ASP.Net ViewState的实现
- ASP.Net ViewState的实现
- ASP.Net ViewState的实现
- ASP.NetViewState的实现方案
- 转贴:ASP.NET中Application,Session,Cookie和ViewState等对象用法
- ASP.Net ViewState的实现