Custom button question
-
our current classic ASP application draws some custom round-ended buttons by doing something like this:
<span onclick="<%= target_url%>"> </span>  <%=GetButtonText%> 
basically, it works because a SPAN can handle an onclick event. well now i've been asked to write a class to do this in C#, and i don't have a clue where to begin. :) is this something you can handle by overriding the standard button C# class, or would this be some other kind of web control, or... ? any help is appreciated. Software | Cleek -
our current classic ASP application draws some custom round-ended buttons by doing something like this:
<span onclick="<%= target_url%>"> </span>  <%=GetButtonText%> 
basically, it works because a SPAN can handle an onclick event. well now i've been asked to write a class to do this in C#, and i don't have a clue where to begin. :) is this something you can handle by overriding the standard button C# class, or would this be some other kind of web control, or... ? any help is appreciated. Software | CleekHave a look in the articles, someone has already posted a .Net control for creating rounded displays. If not, you can extend the button control or the basic System.Web.Control to create your own server control, basically you just add the html you need during the Render method, again there are plenty of articles here already explaining how to do this.
-
Have a look in the articles, someone has already posted a .Net control for creating rounded displays. If not, you can extend the button control or the basic System.Web.Control to create your own server control, basically you just add the html you need during the Render method, again there are plenty of articles here already explaining how to do this.