asp:button w/ client side and server side click event

Discussion in 'ASP .Net Web Controls' started by Aymer, Sep 17, 2003.

  1. Aymer

    Aymer Guest

    I have a web control button.
    <asp:button text="Save" runat="server"
    onClick="EnterBtn_Click" id="btnSave" style="width:
    60px;"/>

    How do i add a client-side click event and server-side
    click event on the same button?
    Aymer, Sep 17, 2003
    #1
    1. Advertising

  2. Aymer

    Alvin Bruney Guest

    server side click event happens for you automatically when you click on the
    button in DESIGN MODE otherwise you need to manually wire the event in the
    initializecomponent function. for client side just add onclick="whatever()"
    to the <asp:button tag. client side gets processed before server side
    "Aymer" <> wrote in message
    news:05bc01c37d5c$8f32cc00$...
    > I have a web control button.
    > <asp:button text="Save" runat="server"
    > onClick="EnterBtn_Click" id="btnSave" style="width:
    > 60px;"/>
    >
    > How do i add a client-side click event and server-side
    > click event on the same button?
    >
    Alvin Bruney, Sep 19, 2003
    #2
    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. Purvi T
    Replies:
    0
    Views:
    829
    Purvi T
    Oct 19, 2004
  2. =?Utf-8?B?QmluIFNvbmcsIE1DUA==?=
    Replies:
    2
    Views:
    6,483
    rick74
    May 27, 2008
  3. Amy
    Replies:
    0
    Views:
    974
  4. Max2006
    Replies:
    2
    Views:
    1,563
    Walter Wang [MSFT]
    Sep 19, 2007
  5. Guest

    Fire server side event before client side event

    Guest, Mar 17, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    583
    Ken Cox [Microsoft MVP]
    Mar 18, 2005
Loading...

Share This Page