【发布时间】:2010-04-15 18:22:17
【问题描述】:
我正在 VS 2008 中开发 C#/SQL ASP.NET Web 应用程序。目前我正在使用 Server.Transfer 方法将控制从一个 ASPX.CS 文件转移到另一个 ASPX 文件。第一次通过,这有效。但是在控制权转移到这个新文件之后,它遇到了一个条件:
if (restart == false)
{
其中“重启”是一个布尔变量。在此语句之后,它立即将控制权转移回同一个 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: 109 中的 AddFileToSQL._Default.btnAppend_Click(Object sender, EventArgs e) 在 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 default\r\n #line hidden\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 default\r\n #line hidden \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 default\r\n #line hidden\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 default\r\n #line hidden\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 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 使用 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 使用 System.Web.UI.HtmlControls;\r\n \r\n #line default\r\n #line hidden\r\n \r\n #line 19 \"C:\Document s 和 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 使用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 使用 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 使用 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 使用 System.Text;\r\n \r\n #line default\r\n #line hidden\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 private static bool @__initialized;\r\n \r\n private static object @__fileDependencies;\r\n \r\n [系统.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n public datamatch_aspx() {\r\n string[] 依赖项;\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 获取{\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 获取 {\r\n 返回 ((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 = 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 私有全局::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( \"头\");\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.AddParsedSubObj ect(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 私有全局::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默认\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::System.Web。 UI.WebControls.PlaceHolder @__BuildControlphTextBoxes() {\r\n global::System.We b.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 私有全局::System.Web.UI.HtmlControls.HtmlTableCell @__BuildControl__control8() {\r\n 全局::System.Web.UI.HtmlControls.HtmlTableCell @__ctrl;\r\n \r\n #第 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 Do cuments\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和 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 \视觉的 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\我的文档\Visu al 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 = \"现在从下拉列表中选择您想要从我的数据库中获取哪些表列\" +\r\n \"o 将这些字段映射到\" ;\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 私有全局: :System.Web.UI.HtmlControls.HtmlTableCell @__BuildControl__control9() {\r\n 全局::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 #lin e 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私有全局::System.Web.UI.WebControls.Button @__BuildControlbtnSubmit() {\r\n 全局::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 #第 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.T ext = \"提交\";\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 def ault\r\n #line hidden\r\n return @__ctrl;\r\n }\r\n \r\n [System.Diagnostics.DebuggerNonUserCodeAttribute()]\r\n 私有全局::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.IParserAcce ssor)(@__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 #线隐藏\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:\Documen ts 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 :\文档和设置\管理员\M y 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 私有全局: :System.Web.UI.HtmlControls.HtmlTableRow @__BuildControl__control6() {\r\n 全局::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和 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 私有全局::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文档\Visual Studio 200 8\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 私有全局::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 = 新的全局::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\项目\广告dFileToSQL\AddFileToSQL\DataMatch.aspx\"\r\n @__parser.AddParsedSubObject(new System.Web.UI.LiteralCont
【问题讨论】:
-
作为一个简单的解决方案,您是否尝试过
Response.Redirect代替? -
不,但我会试试这个并回发结果。谢谢。
-
Response.Redirect 对我不起作用,因为它要求提供 URL,而我尝试的 URL 字符串不起作用。这是我的默认网站应用程序。有什么问题: Response.Redirect("localhost/WpfApp1/DataMatch.aspx"); 它说找不到“/WpfApp1/DataMatch.aspx”。
标签: c# asp.net server.transfer