Server Error in '/WxOA' Application.
?
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Description:?An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.?Exception Details:?System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).Source Error:?
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:?
[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +8898062
FineUI.CommonResourceHelper.AddContentToHead(Page page, String controlId, String msg) +117
FineUI.CommonResourceHelper.RegisterCommonResource(Page page) +87
FineUI.ResourceManager.Page_InitComplete(Object sender, EventArgs e) +30
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnInitComplete(EventArgs e) +9089182
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +604
?
Version Information:?Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1031
?
無(wú)法修改控件集合,因?yàn)榭丶a塊(即:“%”…))
?
?
?
該怎么解決呢
3 回答

撒科打諢
TA貢獻(xiàn)1934條經(jīng)驗(yàn) 獲得超2個(gè)贊
protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
{
Response.Redirect("http://jygroup.gnway.cc:8810/wxoa/ScanTest.aspx");
}
路徑應(yīng)該不會(huì)錯(cuò)的,代碼里有好多這種跳轉(zhuǎn),就這一個(gè)報(bào)錯(cuò)
- 3 回答
- 0 關(guān)注
- 557 瀏覽
添加回答
舉報(bào)
0/150
提交
取消