Click to See Complete Forum and Search --> : How to create custom tag in ASP .NET?


ppuniversal
December 29th, 2008, 08:09 AM
Hi,
I want to create a ASP .NET web application in which I want to put my comments in a node like this:

<form id="form1" runat="server">
<div>
<comment> This is a comment </comment>
</div>
</form>



In the example above, I am writing my comment in a node <comment>

My issues are:
1. First I need to find a way to make my application understand this custom comment tag.
2. Then I want to make this tag behave like a commented block like:

<%--This is a comment--%>


Thanks,
Pawan

vuyiswam
January 13th, 2009, 05:04 AM
In ASP.NET you cant do that , you can do that in XML