0
我在ProcessRequest(HttpContext context)
中有一組代碼(如下所述)在通用處理程序.ashx
文件中。從HttpHandler呈現HtmlGenericControl
HtmlGenericControl holder = new HtmlGenericControl("div");
//Set holder's properties and customization
HtmlGenericControl button1 = new HtmlGenericControl("input");
//Set button1's properties and customization
holder.Controls.Add(button1);
HtmlGenericControl button2 = new HtmlGenericControl("input");
//Set button2's properties and customization
holder.Controls.Add(button2);
HtmlGenericControl button2 = new HtmlGenericControl("input");
//Set button2's properties and customization
holder.Controls.Add(button2);
現在,當我在一個HttpHander
,我想holder
控制HTML
,並通過context.Respose.Write()
寫。
請幫助我解決這個問題。
在此先感謝
穆奈姆