演示代码下载地址:http://www.cnblogs.com/Files/me-sa/HttpStudy.rar
1 private void ProcessRequestMain(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint)
2 {
3 try
4 {
5 HttpContext context = this.Context;
6 string str = null;
7 if (includeStagesBeforeAsyncPoint)
8 {
9 if (this.IsInAspCompatMode)
10 {
11 AspCompatApplicationStep.OnPageStartSessionObjects();
12 }
13 if (this.PageAdapter != null)
14 {
15 this._requestValueCollection = this.PageAdapter.DeterminePostBackMode();
16 }
17 else
18 {
19 this._requestValueCollection = this.DeterminePostBackMode();
20 }
21 string callbackControlID = string.Empty;
22 if (this.DetermineIsExportingWebPart())
23 {
24 if (!RuntimeConfig.GetAppConfig().WebParts.EnableExport)
25 {
26 throw new InvalidOperationException(SR.GetString("WebPartExportHandler_DisabledExportHandler&qu