R
Ricky K. Rasmussen
Hi NG,
Is it possible in any way to serve an ASP.NET server control when the
request is beeing processed by a custom request handler?
In my case I use my own request handler to serve elements that exists as
content in a database, and not as files in the file system. What i want is
to be able to place ASP.NET controls on some of my output, so they can be
served alongside my requested content.
I've tried to create a System.Web.UI.Page instance, add a HtmlForm to its
Controls collection and my ASP.NET control to the HtmlForm. Calling the
Control or Page RenderControl() method provided me with the initial output
of the control, but it seams i need to do a little more work than that.
The Viewstate isn't maintained and the serverside events generated by the
control cannot be caught.
Do I need to manually parse the request for viewstate and serverside events?
Is there a way to do this easily? Or do I end up making my own version of
the ASP.NET RequestHandler?
Could anyone point me in the right direction?
Thanks for your time,
Ricky
Is it possible in any way to serve an ASP.NET server control when the
request is beeing processed by a custom request handler?
In my case I use my own request handler to serve elements that exists as
content in a database, and not as files in the file system. What i want is
to be able to place ASP.NET controls on some of my output, so they can be
served alongside my requested content.
I've tried to create a System.Web.UI.Page instance, add a HtmlForm to its
Controls collection and my ASP.NET control to the HtmlForm. Calling the
Control or Page RenderControl() method provided me with the initial output
of the control, but it seams i need to do a little more work than that.
The Viewstate isn't maintained and the serverside events generated by the
control cannot be caught.
Do I need to manually parse the request for viewstate and serverside events?
Is there a way to do this easily? Or do I end up making my own version of
the ASP.NET RequestHandler?
Could anyone point me in the right direction?
Thanks for your time,
Ricky