custom control

Discussion in 'ASP .Net Web Controls' started by Victor Rodriguez, Aug 18, 2007.

  1. I have a custom control that generates a toolbar but I need to find out how
    can I register each one of the buttons to causevalidation when they're
    clicked. All the buttons are <a><img /></a>. I know how to make them
    postback already but not to cause validation.

    Thanks,

    Victor
    Victor Rodriguez, Aug 18, 2007
    #1
    1. Advertising

  2. Victor Rodriguez

    Teemu Keiski Guest

    Hello,

    I'de demonstrated that aspect on my blog post:
    http://aspadvice.com/blogs/joteke/a...ributes-to-control-properties-in-ASP.NET.aspx

    Basically you generate the needed javascript by instantiating a
    PostBackOptions instance to which you set PerforemValidation and
    ValidationGroup properties. Passing this instance to
    Page.ClientScript.GetPostBAckEventReference will give you the needed js
    call.


    --
    Teemu Keiski
    AspInsider, ASP.NET MVP
    http://blogs.aspadvice.com/joteke
    http://teemukeiski.net


    "Victor Rodriguez" <> wrote in message
    news:...
    >I have a custom control that generates a toolbar but I need to find out how
    >can I register each one of the buttons to causevalidation when they're
    >clicked. All the buttons are <a><img /></a>. I know how to make them
    >postback already but not to cause validation.
    >
    > Thanks,
    >
    > Victor
    >
    Teemu Keiski, Aug 19, 2007
    #2
    1. Advertising

  3. Thanks Teemu's input.


    Hi Victor,

    Since you're a MSDN subscriber, we're closely monitoring your posts.
    Therefore I'm writing to ask if you need anything else in this question.

    Thanks for using MSDN Managed Newsgroup support service!


    Regards,
    Walter Wang (, remove 'online.')
    Microsoft Online Community Support

    ==================================================
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    ==================================================

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Walter Wang [MSFT], Aug 23, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    715
  2. Jonah Olsson
    Replies:
    1
    Views:
    570
    Scott Allen
    Apr 5, 2005
  3. J R M
    Replies:
    2
    Views:
    427
    Charlie@CBFC
    Jun 1, 2006
  4. Matt Sokol
    Replies:
    2
    Views:
    375
    Theo Tillotson
    Aug 7, 2003
  5. Jonah Olsson
    Replies:
    2
    Views:
    197
    Jonah Olsson
    Apr 5, 2005
Loading...

Share This Page