LinkButton Client side code firing before server side code

Discussion in 'ASP .Net' started by alexmac262@hotmail.com, Mar 22, 2007.

  1. Guest

    Please forgive as I have never posted to a group before and this is my
    first attempt at getting help on the internet.

    Inside an update panel I have a linkButton in a Gridview control
    template field. I need to pass several control values from the grid
    to a popup window. The solution that I came up with was to extract
    datakey values in RowCommand, store them in hidden textboxes and use a
    query string to pass the values.

    The problem I encountered was client side javascript firing before
    server side code. I attempted to use RegisterStartup script with same
    result.

    Thank you,
    Alex
    , Mar 22, 2007
    #1
    1. Advertising

  2. Norman Yuan Guest

    That is the way it is: if a sver control has client side script associated
    with client side event, the script runs first before the page is submitted
    to server, where server side event then fires.

    <> wrote in message
    news:...
    > Please forgive as I have never posted to a group before and this is my
    > first attempt at getting help on the internet.
    >
    > Inside an update panel I have a linkButton in a Gridview control
    > template field. I need to pass several control values from the grid
    > to a popup window. The solution that I came up with was to extract
    > datakey values in RowCommand, store them in hidden textboxes and use a
    > query string to pass the values.
    >
    > The problem I encountered was client side javascript firing before
    > server side code. I attempted to use RegisterStartup script with same
    > result.
    >
    > Thank you,
    > Alex
    >
    Norman Yuan, Mar 22, 2007
    #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. =?Utf-8?B?QmluIFNvbmcsIE1DUA==?=
    Replies:
    2
    Views:
    6,490
    rick74
    May 27, 2008
  2. moondaddy
    Replies:
    2
    Views:
    1,034
    Steven Cheng[MSFT]
    Jul 16, 2004
  3. Sathyaish
    Replies:
    3
    Views:
    3,102
    Sathyaish
    Sep 8, 2005
  4. Sathyaish

    Linkbutton does not look like a linkbutton

    Sathyaish, Sep 8, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    184
    Sathyaish
    Sep 8, 2005
  5. Guest

    Fire server side event before client side event

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

Share This Page