Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 11, 2011 09:09 PM by Alkingson
Dec 03, 2010 03:44 AM|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?
HtmlTextWriter writer =
"<body style='border:0;background-color:gainsboro;' leftmargin='0' topmargin='0'>");
"<form id='form1' runat='server'>");
WebControl c =
//HtmlForm fm = new HtmlForm();
//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.
//Page userControl = (Page)PageParser.GetCompiledPageInstance("~/Control.aspx", context.Server.MapPath("~/Control.aspx"), context);
//Panel p = iHandler.GetControl();
httphandler composite control
Dec 27, 2010 02:22 AM|LINK
Did you get the solution? I see that you have resolved this thread.
Jan 11, 2011 09:09 PM|LINK
Yes i did got the answer..