Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Custom button question

Custom button question

Scheduled Pinned Locked Moved Web Development
questioncsharpcomhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris Losinger
    wrote on last edited by
    #1

    our current classic ASP application draws some custom round-ended buttons by doing something like this: <span onclick="<%= target_url%>"> </span> ![](leftside.gif) <%=GetButtonText%> ![](rightside.gif) 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

    C 1 Reply Last reply
    0
    • C Chris Losinger

      our current classic ASP application draws some custom round-ended buttons by doing something like this: <span onclick="<%= target_url%>"> </span> ![](leftside.gif) <%=GetButtonText%> ![](rightside.gif) 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

      C Offline
      C Offline
      ChrisAdams
      wrote on last edited by
      #2

      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.

      C 1 Reply Last reply
      0
      • C ChrisAdams

        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.

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        ChrisAdams wrote: again there are plenty of articles here already explaining how to do this. i looked and didn't find any that looked promising. i realize this is probably very basic stuff... -c Software | Cleek

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups