Server.transfer 导致 HttpException

发布于 2024-08-29 05:19:11 字数 22305 浏览 8 评论 0原文

我正在 VS 2008 中开发一个 C#/SQL ASP.NET Web 应用程序。目前我正在使用 Server.Transfer 方法将控制从一个 ASPX.CS 文件传输到另一个 ASPX 文件。第一次通过,这有效。但在控制权转移到这个新文件后,它会遇到一个条件:

if (restart == false)
            {

其中“restart”是一个布尔变量。执行此语句后,它立即将控制权转移回同一个 ASPX.CS 文件,并尝试重新执行 Server.Transfer 方法。这次它给了我以下异常和堆栈跟踪。你知道是什么原因造成的吗?我尝试阅读这篇文章,但它对我来说没有多大意义。

System.Web.HttpException 未被用户代码处理 Message="执行 DataMatch.aspx 的子请求时出错。" 来源=“系统.Web” 错误代码=-2147467259 堆栈跟踪: 在System.Web.HttpServerUtility.Execute(字符串路径,TextWriter writer,布尔preserveForm) 在System.Web.HttpServerUtility.Transfer(字符串路径,布尔值preserveForm) 在 System.Web.HttpServerUtility.Transfer(字符串路径) 在 C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\Default.aspx.cs 中的 AddFileToSQL._Default.btnAppend_Click(Object sender, EventArgs e):第 109 行 在 System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e) 在 System.Web.UI.HtmlControls.HtmlInputButton.RaisePostBackEvent(字符串 eventArgument) 在 System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(字符串 eventArgument) 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,字符串 eventArgument) 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 在 System.Web.UI.Page.ProcessRequestMain(布尔 includeStagesBeforeAsyncPoint,布尔 includeStagesAfterAsyncPoint) 内部异常:System.Web.HttpCompileException Message =“c:\ Documents and Settings \ Admin \ My Documents \ Visual Studio 2008 \ Projects \ AddFileToSQL \ AddFileToSQL \ DataMatch.aspx(14):错误CS1502:'System.Web.UI.HtmlControls的最佳重载方法匹配。 HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' 有一些无效参数” 来源=“系统.Web” 错误代码=-2147467259 SourceCode="#pragma checksum \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\" \"{406ea660-64cf-4c82-b6f0-42d48172a799}\" \"76750ABD913CF678D216C1E9CFB62BDF\"\r\n//---------------------------------------- ---------------------------------------\r\n// \r\n/ / 此代码由工具生成。\r\n// 运行时版本:2.0.50727.3603\r\n//\r\n// 对此文件的更改可能会导致不正确的行为,并且在以下情况下将会丢失\r\n // 重新生成代码。\r\n// \r\n//-------------------------------- -----------------------------------------------------------\r\ n\r\n命名空间 ASP {\r\n \r\n #line 285 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n 使用 System.Web .Profile;\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 280 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config \web.config\"\r\n 使用 System.Text.RegularExpressions;\r\​​n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 282 \"C: \WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n 使用 System.Web.Caching;\r\n \r\n #line 默认\r\n #line 隐藏\ r\n \r\n #line 278 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n 使用 System.Configuration;\r\n \r\ n #line 默认\r\n #line 隐藏\r\n \r\n #line 277 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n使用 System.Collections.Specialized;\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 19 \"C:\Documents and Settings\Admin\My Documents\ Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n 使用 System.Web.UI.WebControls.WebParts;\r\​​n \r\n #line 默认\r\n #line 隐藏\r \n \r\n #line 289 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n 使用 System.Web.UI.HtmlControls;\r\​​n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 19 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch .aspx\"\r\n 使用 System.Web.UI.WebControls;\r\​​n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 19 \"C: \Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n 使用 System.Web.UI;\r\n \r\n #行默认值\r\ n #line 隐藏\r\n \r\n #line 276 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n 使用 System.Collections;\r \n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 275 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\ "\r\n 使用系统;\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 284 \"C:\WINDOWS\Microsoft.NET\Framework\ v2.0.50727\Config\web.config\"\r\n 使用 System.Web.Security;\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 281 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n 使用 System.Web;\r\n \r\n #行默认值\r\n #行隐藏\r\n \r\n #line 283 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n 使用 System.Web.SessionState;\r \n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 279 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\ "\r\n 使用 System.Text;\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n \r\n [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute() ]\r\n 公共类 datamatch_aspx : global::AddFileToSQL.DataMatch、System.Web.SessionState.IRequiresSessionState、System.Web.IHttpHandler {\r\n \r\n 私有静态 bool @__initialized;\r\n \r \n 私有静态对象 @__fileDependency;\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n public datamatch_aspx() {\r\n string[] dependency;\r\n ((global ::AddFileToSQL.DataMatch)(this)).AppRelativeVirtualPath = \"~/DataMatch.aspx\";\r\n if ((global::ASP.datamatch_aspx.@__initialized == false)) {\r\n 依赖项= 新字符串[1];\r\n 依赖项[0] = \"~/DataMatch.aspx\";\r\n global::ASP.datamatch_aspx.@__fileDependencies = this.GetWrappedFileDependency(dependencies);\r\ n global::ASP.datamatch_aspx.@__initialized = true;\r\n }\r\n this.Server.ScriptTimeout = 30000000;\r\n }\r\n \r\n 受保护的 System.Web.Profile。 DefaultProfile 配置文件 {\r\n 获取 {\r\n return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));\r\n }\r\n }\r\n \r\ n protected ASP.global_asax ApplicationInstance {\r\n get {\r\n return ((ASP.global_asax)(this.Context.ApplicationInstance));\r\n }\r\n }\r\n \r\ n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web.UI.HtmlControls.HtmlTitle @__BuildControl__control3() {\r\n 全局::System.Web.UI.HtmlControls.HtmlTitle @__ctrl ;\r\n \r\n #line 6 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = 新全局::System.Web.UI.HtmlControls.HtmlTitle();\r\n \r\n #行默认\r\n #行隐藏\r\n return @__ctrl;\r\n }\r\n \ r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web.UI.HtmlControls.HtmlHead @__BuildControl__control2() {\r\n 全局::System.Web.UI.HtmlControls.HtmlHead @__ctrl;\r\n \r\n #line 5 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.HtmlControls.HtmlHead(\"head\");\r\n \r\n #line 默认\r\n #line 隐藏\r\n global::System.Web. UI.HtmlControls.HtmlTitle @__ctrl1;\r\n \r\n #line 5 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r \n @__ctrl1 = this.@__BuildControl__control3();\r\n \r\n #line 默认\r\n #line 隐藏\r\n System.Web.UI.IParserAccessor @__parser = ((System.Web. UI.IParserAccessor)(@__ctrl));\r\n \r\n #line 5 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\" \r\n @__parser.AddParsedSubObject(@__ctrl1);\r\n \r\n #line default\r\n #linehidden\r\n \r\n #line 5 \"C:\Documents and Settings \Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \r\n \ r\n \r\n \r\n\"));\r\n \r\n #行默认\r\n #行隐藏\r\n return @__ctrl;\r\n }\r\ n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web.UI.HtmlControls.HtmlTableRow @__BuildControl__control5() {\r\n 全局::System.Web.UI.HtmlControls .HtmlTableRow @__ctrl;\r\n \r\n #line 15 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @ __ctrl = new global::System.Web.UI.HtmlControls.HtmlTableRow();\r\n \r\n #line 默认\r\n #line 隐藏\r\n return @__ctrl;\r\n }\ r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web.UI.WebControls.PlaceHolder @__BuildControlphTextBoxes() {\r\n 全局::System.Web.UI .WebControls.PlaceHolder @__ctrl;\r\n \r\n #line 19 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\ n @__ctrl = new global::System.Web.UI.WebControls.PlaceHolder();\r\n \r\n #line 默认\r\n #line 隐藏\r\n this.phTextBoxes = @__ctrl;\ r\n \r\n #line 19 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.ID = \" phTextBoxes\";\r\n \r\n #行默认\r\n #行隐藏\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute( )]\r\n 私有全局::System.Web.UI.HtmlControls.HtmlTableCell @__BuildControl__control8() {\r\n 全局::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl;\r\n \r\ n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI。 HtmlControls.HtmlTableCell(\"td\");\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 18 \"C:\Documents and Settings\Admin \My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Align = \"center\";\r\n \r\n #行默认值\r\n #行隐藏\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.VAlign = \"top\";\r\n \r\n #行默认\r\n #行隐藏\r\n System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)( @__ctrl));\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @ __parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \"));\r\n \r\n #line 默认\r\n #line 隐藏\r\n global::System .Web.UI.WebControls.PlaceHolder @__ctrl1;\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\ "\r\n @__ctrl1 = this.@__BuildControlphTextBoxes();\r\n \r\n #line default\r\n #linehidden\r\n \r\n #line 18 \"C:\Documents和 Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(@__ctrl1);\r\n \r\n #line default\r\ n #line 隐藏\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser .AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \"));\r\n \r\n #行默认\r\n #行隐藏\r\n return @__ctrl;\ r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web.UI.WebControls.Label @__BuildControlInstructions() {\r\n 全局:: System.Web.UI.WebControls.Label @__ctrl;\r\n \r\n #line 22 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx \"\r\n @__ctrl = new global::System.Web.UI.WebControls.Label();\r\n \r\n #line 默认\r\n #line 隐藏\r\n this.Instructions = @__ctrl;\r\n @__ctrl.ApplyStyleSheetSkin(this);\r\n \r\n #line 22 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL \DataMatch.aspx\"\r\n @__ctrl.ID = \"说明\";\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 22 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Font.Italic = true;\r\n \r\n #行默认\r\n #行隐藏\r\n \r\n #行 22 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\" \r\n @__ctrl.Text = \"现在从下拉列表中选择您想要从我的数据库中读取哪些表列\" +\r\n \"o 将这些字段映射到\";\r\n \r\n #行默认\r\n #行隐藏\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System. Web.UI.HtmlControls.HtmlTableCell @__BuildControl__control9() {\r\n global::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl;\r\n \r\n #line 21 \"C:\Documents and Settings \Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.HtmlControls.HtmlTableCell(\"td\");\ r\n \r\n #行默认\r\n #行隐藏\r\n System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));\r\ n \r\n #line 21 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web .UI.LiteralControl(\"\r\n \"));\r\n \r\n #line 默认\r\n #line 隐藏\r\n global::System.Web.UI.WebControls.Label @__ctrl1;\r\n \r\n #line 21 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl1 = this.@__BuildControlInstructions();\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 21 \"C:\Documents and Settings\Admin\My Documents\ Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(@__ctrl1);\r\n \r\n # 行默认\r\n # 行隐藏\r\n \r\n #line 21 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web. UI.LiteralControl(\"\r\n \"));\r\n \r\n #行默认\r\n #行隐藏\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web.UI.WebControls.Button @__BuildControlbtnSubmit() {\r\n 全局::System.Web.UI.WebControls.按钮 @__ctrl;\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.WebControls.Button();\r\n \r\n #line 默认\r\n #line 隐藏\r\n this.btnSubmit = @__ctrl;\r\n @__ctrl.ApplyStyleSheetSkin(this);\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r \n @__ctrl.ID = \"btnSubmit\";\r\n \r\n #line default\r\n #linehidden\r\n \r\n #line 26 \"C:\Documents and Settings \Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Text = \"Submit\";\r\n \r\n #行默认值\r\ n #line 隐藏\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl .Width = new System.Web.UI.WebControls.Unit(150, System.Web.UI.WebControls.UnitType.Pixel);\r\n \r\n #line 默认\r\n #line 隐藏\r\ n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n ((System.Web.UI.IAttributeAccessor )(@__ctrl)).SetAttribute(\"样式\", \"顶部:自动;左:自动\");\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\ Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n ((System.Web.UI.IAttributeAccessor)(@__ctrl)).SetAttribute(\"top\", \"100px\"); \r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL \AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Click -= new System.EventHandler(this.btnSubmit_Click);\r\n \r\n # 行默认\r\n # 行隐藏\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Click += new System.EventHandler (this.btnSubmit_Click);\r\n \r\n #line 默认\r\n #line 隐藏\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics. DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web.UI.HtmlControls.HtmlTableCell @__BuildControl__control10() {\r\n 全局::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl;\r\n \ r\n #line 25 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web。 UI.HtmlControls.HtmlTableCell(\"td\");\r\n \r\n #line default\r\n #linehidden\r\n \r\n #line 25 \"C:\Documents and Settings \Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Align = \"center\";\r\n \r\n #行默认值\r\ n #line 隐藏\r\n System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));\r\n \r\n #line 25 \"C:\文档和设置\Admin\我的文档\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \" ));\r\n \r\n #line 默认\r\n #line 隐藏\r\n global::System.Web.UI.WebControls.Button @__ctrl1;\r\n \r\n #line 25 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl1 = this.@__BuildControlbtnSubmit();\r\n \r \n #line 默认\r\n #line 隐藏\r\n \r\n #line 25 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx \"\r\n @__parser.AddParsedSubObject(@__ctrl1);\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 25 \"C:\Documents和 Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n  \ r\n \"));\r\n \r\n #行默认\r\n #行隐藏\r\n return @__ctrl;\r\n }\r\n \r\n [System. Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private void @__BuildControl__control7(System.Web.UI.HtmlControls.HtmlTableCellCollection @__ctrl) {\r\n global::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl1;\r\ n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl1 = this.@__BuildControl__control8() ;\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\ AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Add(@__ctrl1);\r\n \r\n #line 默认\r\n #line 隐藏\r\n global::System.Web .UI.HtmlControls.HtmlTableCell @__ctrl2;\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\ r\n @__ctrl2 = this.@__BuildControl__control9();\r\n \r\n #line default\r\n #linehidden\r\n \r\n #line 17 \"C:\Documents and Settings \Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Add(@__ctrl2);\r\n \r\n #行默认值\r\n #行隐藏\r\n global::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl3;\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\ Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl3 = this.@__BuildControl__control10();\r\n \r\n #行默认\r\n #行隐藏\r\n \r\ n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Add(@__ctrl3);\r\n \r\n #line 默认\r\n #line 隐藏\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web.UI。 HtmlControls.HtmlTableRow @__BuildControl__control6() {\r\n global::System.Web.UI.HtmlControls.HtmlTableRow @__ctrl;\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.HtmlControls.HtmlTableRow();\r\n \r\n #line默认\r\n #line 隐藏\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r \n @__ctrl.Align = \"center\";\r\n \r\n #line default\r\n #linehidden\r\n \r\n #line 17 \"C:\Documents and Settings \Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n this.@__BuildControl__control7(@__ctrl.Cells);\r\n \r\n #行默认值\r\ n #line hide\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web.UI.WebControls。文字 @__BuildControllTextData() {\r\n global::System.Web.UI.WebControls.Literal @__ctrl;\r\n \r\n #line 34 \"C:\Documents and Settings\Admin\My Documents\ Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.WebControls.Literal();\r\n \r\n #line default\ r\n #linehidden\r\n this.lTextData = @__ctrl;\r\n \r\n #line 34 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\ AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.ID = \"lTextData\";\r\n \r\n #line 默认\r\n #line 隐藏\r\n return @__ctrl;\r \n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web.UI.WebControls.Panel @__BuildControlpnlDisplayData() {\r\n 全局::System .Web.UI.WebControls.Panel @__ctrl;\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\ "\r\n @__ctrl = new global::System.Web.UI.WebControls.Panel();\r\n \r\n #line 默认\r\n #line 隐藏\r\n this.pnlDisplayData = @__ctrl;\r\n @__ctrl.ApplyStyleSheetSkin(this);\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\ DataMatch.aspx\"\r\n @__ctrl.ID = \"pnlDisplayData\";\r\n \r\n #line 默认\r\n #line 隐藏\r\n \r\n #line 31 \ "C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Visible = false;\r\n \r\n #line default \r\n #line 隐藏\r\n System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));\r\n \r\n #line 31 \" C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\ n \r\n \r\n \" +\r\n \" \"));\r\n \r\n #line 默认\r\n #line 隐藏\r\n global::System. Web.UI.WebControls.Literal @__ctrl1;\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\" \r\n @__ctrl1 = this.@__BuildControllTextData();\r\n \r\n #line default\r\n #linehidden\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(@__ctrl1);\r\n \r\n #行默认值\r\n #line 隐藏\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser。 AddParsedSubObject(new System.Web.UI.LiteralCont)

I am developing a C#/SQL ASP.NET web application in VS 2008. Currently I am using the Server.Transfer method to transfer control from one ASPX.CS file to another ASPX file. The first time through, this works. But after control is transferred to this new file it encounters a condition:

if (restart == false)
            {

where "restart" is a boolean variable. After this statement it immediately transfers control back to the same ASPX.CS file and tries to reexecute the Server.Transfer method. This time it gives me the following exception and stack trace. Do you know what is causing this? I tried to read this but it didn't make much sense to me.

System.Web.HttpException was unhandled by user code
Message="Error executing child request for DataMatch.aspx."
Source="System.Web"
ErrorCode=-2147467259
StackTrace:
at System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm)
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
at System.Web.HttpServerUtility.Transfer(String path)
at AddFileToSQL._Default.btnAppend_Click(Object sender, EventArgs e) in C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\Default.aspx.cs:line 109
at System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e)
at System.Web.UI.HtmlControls.HtmlInputButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: System.Web.HttpCompileException
Message="c:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx(14): error CS1502: The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments"
Source="System.Web"
ErrorCode=-2147467259
SourceCode="#pragma checksum \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\" \"{406ea660-64cf-4c82-b6f0-42d48172a799}\" \"76750ABD913CF678D216C1E9CFB62BDF\"\r\n//------------------------------------------------------------------------------\r\n// \r\n// This code was generated by a tool.\r\n// Runtime Version:2.0.50727.3603\r\n//\r\n// Changes to this file may cause incorrect behavior and will be lost if\r\n// the code is regenerated.\r\n// \r\n//------------------------------------------------------------------------------\r\n\r\nnamespace ASP {\r\n \r\n #line 285 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Web.Profile;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 280 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Text.RegularExpressions;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 282 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Web.Caching;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 278 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Configuration;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 277 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Collections.Specialized;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 19 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n using System.Web.UI.WebControls.WebParts;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 289 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Web.UI.HtmlControls;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 19 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n using System.Web.UI.WebControls;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 19 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n using System.Web.UI;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 276 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Collections;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 275 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 284 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Web.Security;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 281 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Web;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 283 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Web.SessionState;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 279 \"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config\"\r\n using System.Text;\r\n \r\n #line default\r\n #line hidden\r\n \r\n \r\n [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]\r\n public class datamatch_aspx : global::AddFileToSQL.DataMatch, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {\r\n \r\n private static bool @__initialized;\r\n \r\n private static object @__fileDependencies;\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n public datamatch_aspx() {\r\n string[] dependencies;\r\n ((global::AddFileToSQL.DataMatch)(this)).AppRelativeVirtualPath = \"~/DataMatch.aspx\";\r\n if ((global::ASP.datamatch_aspx.@__initialized == false)) {\r\n dependencies = new string[1];\r\n dependencies[0] = \"~/DataMatch.aspx\";\r\n global::ASP.datamatch_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);\r\n global::ASP.datamatch_aspx.@__initialized = true;\r\n }\r\n this.Server.ScriptTimeout = 30000000;\r\n }\r\n \r\n protected System.Web.Profile.DefaultProfile Profile {\r\n get {\r\n return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));\r\n }\r\n }\r\n \r\n protected ASP.global_asax ApplicationInstance {\r\n get {\r\n return ((ASP.global_asax)(this.Context.ApplicationInstance));\r\n }\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.HtmlControls.HtmlTitle @__BuildControl__control3() {\r\n global::System.Web.UI.HtmlControls.HtmlTitle @__ctrl;\r\n \r\n #line 6 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.HtmlControls.HtmlTitle();\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.HtmlControls.HtmlHead @__BuildControl__control2() {\r\n global::System.Web.UI.HtmlControls.HtmlHead @__ctrl;\r\n \r\n #line 5 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.HtmlControls.HtmlHead(\"head\");\r\n \r\n #line default\r\n #line hidden\r\n global::System.Web.UI.HtmlControls.HtmlTitle @__ctrl1;\r\n \r\n #line 5 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl1 = this.@__BuildControl__control3();\r\n \r\n #line default\r\n #line hidden\r\n System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));\r\n \r\n #line 5 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(@__ctrl1);\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 5 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \r\n \r\n \r\n \r\n\"));\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.HtmlControls.HtmlTableRow @__BuildControl__control5() {\r\n global::System.Web.UI.HtmlControls.HtmlTableRow @__ctrl;\r\n \r\n #line 15 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.HtmlControls.HtmlTableRow();\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.WebControls.PlaceHolder @__BuildControlphTextBoxes() {\r\n global::System.Web.UI.WebControls.PlaceHolder @__ctrl;\r\n \r\n #line 19 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.WebControls.PlaceHolder();\r\n \r\n #line default\r\n #line hidden\r\n this.phTextBoxes = @__ctrl;\r\n \r\n #line 19 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.ID = \"phTextBoxes\";\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.HtmlControls.HtmlTableCell @__BuildControl__control8() {\r\n global::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl;\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.HtmlControls.HtmlTableCell(\"td\");\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Align = \"center\";\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.VAlign = \"top\";\r\n \r\n #line default\r\n #line hidden\r\n System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \"));\r\n \r\n #line default\r\n #line hidden\r\n global::System.Web.UI.WebControls.PlaceHolder @__ctrl1;\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl1 = this.@__BuildControlphTextBoxes();\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(@__ctrl1);\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 18 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \"));\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.WebControls.Label @__BuildControlInstructions() {\r\n global::System.Web.UI.WebControls.Label @__ctrl;\r\n \r\n #line 22 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.WebControls.Label();\r\n \r\n #line default\r\n #line hidden\r\n this.Instructions = @__ctrl;\r\n @__ctrl.ApplyStyleSheetSkin(this);\r\n \r\n #line 22 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.ID = \"Instructions\";\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 22 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Font.Italic = true;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 22 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Text = \"Now select from the dropdownlists which table columns from my database you want t\" +\r\n \"o map these fields to\";\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.HtmlControls.HtmlTableCell @__BuildControl__control9() {\r\n global::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl;\r\n \r\n #line 21 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.HtmlControls.HtmlTableCell(\"td\");\r\n \r\n #line default\r\n #line hidden\r\n System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));\r\n \r\n #line 21 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \"));\r\n \r\n #line default\r\n #line hidden\r\n global::System.Web.UI.WebControls.Label @__ctrl1;\r\n \r\n #line 21 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl1 = this.@__BuildControlInstructions();\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 21 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(@__ctrl1);\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 21 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \"));\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.WebControls.Button @__BuildControlbtnSubmit() {\r\n global::System.Web.UI.WebControls.Button @__ctrl;\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.WebControls.Button();\r\n \r\n #line default\r\n #line hidden\r\n this.btnSubmit = @__ctrl;\r\n @__ctrl.ApplyStyleSheetSkin(this);\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.ID = \"btnSubmit\";\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Text = \"Submit\";\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Width = new System.Web.UI.WebControls.Unit(150, System.Web.UI.WebControls.UnitType.Pixel);\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n ((System.Web.UI.IAttributeAccessor)(@__ctrl)).SetAttribute(\"style\", \"top:auto; left:auto\");\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n ((System.Web.UI.IAttributeAccessor)(@__ctrl)).SetAttribute(\"top\", \"100px\");\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Click -= new System.EventHandler(this.btnSubmit_Click);\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 26 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Click += new System.EventHandler(this.btnSubmit_Click);\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.HtmlControls.HtmlTableCell @__BuildControl__control10() {\r\n global::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl;\r\n \r\n #line 25 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.HtmlControls.HtmlTableCell(\"td\");\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 25 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Align = \"center\";\r\n \r\n #line default\r\n #line hidden\r\n System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));\r\n \r\n #line 25 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \"));\r\n \r\n #line default\r\n #line hidden\r\n global::System.Web.UI.WebControls.Button @__ctrl1;\r\n \r\n #line 25 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl1 = this.@__BuildControlbtnSubmit();\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 25 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(@__ctrl1);\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 25 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n  \r\n \"));\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private void @__BuildControl__control7(System.Web.UI.HtmlControls.HtmlTableCellCollection @__ctrl) {\r\n global::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl1;\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl1 = this.@__BuildControl__control8();\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Add(@__ctrl1);\r\n \r\n #line default\r\n #line hidden\r\n global::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl2;\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl2 = this.@__BuildControl__control9();\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Add(@__ctrl2);\r\n \r\n #line default\r\n #line hidden\r\n global::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl3;\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl3 = this.@__BuildControl__control10();\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Add(@__ctrl3);\r\n \r\n #line default\r\n #line hidden\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.HtmlControls.HtmlTableRow @__BuildControl__control6() {\r\n global::System.Web.UI.HtmlControls.HtmlTableRow @__ctrl;\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.HtmlControls.HtmlTableRow();\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Align = \"center\";\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 17 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n this.@__BuildControl__control7(@__ctrl.Cells);\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.WebControls.Literal @__BuildControllTextData() {\r\n global::System.Web.UI.WebControls.Literal @__ctrl;\r\n \r\n #line 34 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.WebControls.Literal();\r\n \r\n #line default\r\n #line hidden\r\n this.lTextData = @__ctrl;\r\n \r\n #line 34 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.ID = \"lTextData\";\r\n \r\n #line default\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n private global::System.Web.UI.WebControls.Panel @__BuildControlpnlDisplayData() {\r\n global::System.Web.UI.WebControls.Panel @__ctrl;\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl = new global::System.Web.UI.WebControls.Panel();\r\n \r\n #line default\r\n #line hidden\r\n this.pnlDisplayData = @__ctrl;\r\n @__ctrl.ApplyStyleSheetSkin(this);\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.ID = \"pnlDisplayData\";\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl.Visible = false;\r\n \r\n #line default\r\n #line hidden\r\n System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(\"\r\n \r\n \r\n \" +\r\n \" \"));\r\n \r\n #line default\r\n #line hidden\r\n global::System.Web.UI.WebControls.Literal @__ctrl1;\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__ctrl1 = this.@__BuildControllTextData();\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(@__ctrl1);\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 31 \"C:\Documents and Settings\Admin\My Documents\Visual Studio 2008\Projects\AddFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralCont

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独孤求败 2024-09-05 05:19:11

我建议尝试 Response.Redirect("New page URL") 因为您在使用 Server.transfer 时遇到了问题。 Response.Redirect 似乎是一种“更干净”的更改页面的方式。请参阅 http://www.developer.com /net/asp/article.php/3299641/ServerTransfer-Vs-ResponseRedirect.htm 进行比较。

I would suggest trying Response.Redirect("New page URL") since you have been having trouble with Server.transfer. Response.Redirect seems like a "cleaner" way to change pages. See http://www.developer.com/net/asp/article.php/3299641/ServerTransfer-Vs-ResponseRedirect.htm for a comparison.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文