Last post Dec 06, 2010 01:29 PM by Alkingson
Dec 03, 2010 10:05 AM|Alkingson|LINK
I have created one Httphandler in that HttpHandler i have to load a composite control. I tried below but it does not work anyone have a clue how to load composite control(which is a dll) in Httphandler? I know how to load a aspx or user control(axcx) page
using PageParser.GetCompiledPageInstance but i want to load a composite control. Also I tried creating page and put htmlform control inside and add composite control in Htmlform and add that Web Page in context of HttpHandler but doing that why does not fire
the events of composite control.
Anyone can please help me how to add a composite control in Httphandler and also have to make them event fire?
void ProcessRequest(HttpContext context)//test
Page pg =
HtmlForm fm =
WebControl c =
//System.Web.UI.HtmlControls.HtmlForm form = new System.Web.UI.HtmlControls.HtmlForm();
using (StringWriter output =
//Below is two line how i load my aspx page but i dont want to load physical aspx page i want to load a composite control not a ascx or aspx page.
composite control httphandler
Dec 06, 2010 06:44 AM|qwe123kids|LINK
What is Httphanlder
chk the above link,...
Know How to Add User Control..
chk the above link...
Dec 06, 2010 01:29 PM|Alkingson|LINK
As i told before i know how to use a ascx file with httphandler just wanted to add composite contorl. But i got my answer I used
Activator.CreateInstance method to get handle of the control and than unwraping it and than adding it to form. Anyone need a code for it please let me know.