How to remove Code in runtime.

Posted by Jayakumars under ASP.NET on 10/31/2011 | Points: 10 | Views : 1204 | Status : [Member] [MVP] | Replies : 1
Hi

I need how to Remove my html code from aspx page in Runtime how will do
this:-> here i need remove below code </html> after code i need remove how
will do this.

below my code:
==============
<html>
<h1>test</h1>
</html>

<script>
Test Records
</script>

Mark as Answer if its helpful to you


Responses

Posted by: Blessyjees on: 10/31/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

You can set div content at the runtime.

add div like
<div id="dynamicDiv" runat="server">

</div>


Enter code in the cd file
string htmlData = "<h1> test</h1>";

this.dynamicDiv.InnerHtml = htmlData;


Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response