SitePoint Sponsor

User Tag List

Results 1 to 1 of 1

Hybrid View

  1. #1
    SitePoint Evangelist praetor's Avatar
    Join Date
    Aug 2005
    Posts
    479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom button control

    I'm trying to implement a custom button that has a non standard rendering (instead of an input tag it renders a span with an input inside). I've implemented the IPostBackEventHandler and IButtonControl but with no success when I click on it. The click event doesn't fire up. I've pasted the example from MSDN and it doesn't work either. But the <asp:Button> works normally.

    How can I solve this?

    Solution
    I was using ClientID instead of UniqueID as the button's name. SO instead of ctl00$btn, it was ctl00_btn .
    Last edited by praetor; Oct 24, 2007 at 02:25. Reason: Problem solved


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •