- 先建立自訂的WebUserControl -- SingleQues.ascx
- 建立:
ASP.singleques sq = ( ASP.singleques )LoadControl("~/Controls/SingleQues.ascx");
需注意,SingleQues.ascx要先編譯成功無語法錯誤後,在要動態產生WebUserControl的aspx頁面中,需在前面加上<%@ Register TagName="
SingleQues " TagPrefix="MyWUC" Src="~/Controls/
SingleQues.ascx " %>。
沒有留言:
張貼留言