當使用Server.Execute()的MyUserControl含有ASP(未HTML)的控制我收到以下消息問題渲染使用使用Server.Execute()用戶控件
用戶控件:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyWebUserControl1.ascx.cs" Inherits="ImageHandlerClient.WebUserControl1" %>
堆棧跟蹤:
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
什麼是你的問題?您是否檢查了異常消息(通過單擊彈出窗口中「操作」下的「查看詳細信息...」)? – Igor 2013-05-13 14:43:46
錯誤執行子請求意味着有什麼問題INSIDE ascx,... – 2013-05-13 14:44:30
當執行ascx文件時,所有內容都是HTML工作正常,但是當添加asp按鈕控件時不工作 – ZSH 2013-05-13 14:54:51