My web application dynamically loads custom built server controls at runtime from seperate assemblies using the reflection namespace. Everything works fine, and the server controls display on the page as required.
I would like to extend this, to enable the server controls to be displayed asycronously. Is it possible to make an asynronous request to the web server and then when the server control is loaded, pass back the HTML that is generated in the RenderContents() method as the responseText?
How would I go about doing this? Example code would be great.
Any help is much appreciated,
Ad
Hi,
I'm still stuck on this on this one, any ideas?
Thanks again,
Ad
Hi,
Please refer to this:Emailing the Rendered Output of an ASP.NET Web Control, it implements the function you need.
Hope this helps.
NOTE:This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
This link looks like a good start, but a bit more sample code especially on the Ajax part would be very helpful.
Regards
Dion
Hi Dion,What probelms do you have after you've got the output of a control?
No comments:
Post a Comment