Adding Multiline html content using javascript
- by pokrate
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 :( .