Adding Multiline html content using javascript

Posted by pokrate on Stack Overflow See other posts from Stack Overflow or by pokrate
Published on 2010-04-15T19:04:49Z Indexed on 2010/04/15 19:23 UTC
Read the original article Hit count: 241

Filed under:
|

Hi, I have created a usercontrol and I want to put its generated html using a javascript file in a webpage. But couldnt do so. Like

<script src='file.aspx'></script>
should add the html from the usercontrol to the container div. The file "file.aspx" has its content-type set to "text/javascript". And using LoadControl() method I am loading the usercontrol, and then using its RenderControl method, I am able to get its generated html. But I couldnt show it up in the webpage. But I am able to add single line html content , but multiline consumed my whole day :( .

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ASP.NET