Posted on: 5/29/2014 10:06:06 PM | Views : 379

Hi there,
I am trying to render the content of a control into a string while requesting a webservice.
I was already trying some different ways. Some returned an empty string and one throws an exception. Experimentaly I tried to place the content into a Page and get the Panel to render it but the page said it had no controls at all.
The way(which I was trying very hopefully) with the exception I have mentioned is the following
ImageElement ie = (ImageElement)new Page().LoadControl("~/Controls/ImageElement.ascx"); and it says something like ""Galerie.Controls.ImageElement" is not allowed here because the class "System.Web.UI.UserControl" is no ...

Go to the complete details ...