GridView Postbacks

Discussion in 'ASP .Net' started by jack, Jun 30, 2008.

  1. jack

    jack Guest

    Hi,
    I need to call a javascript function, on every postback that the
    gridview makes. Is there anyway to do this?

    Thanks.
    Jack
     
    jack, Jun 30, 2008
    #1
    1. Advertisements

  2. Hi Jack

    > I need to call a javascript function, on every postback that the
    > gridview makes. Is there anyway to do this?

    The ussal way to hook into the GridView Methods is not passable.

    An approach could be, if you hook into the form.onsubmit event with
    javascript
    and execute there some finishing code.
    Informations over the current Arguments, etc... can be found within the
    ASP.NET generated Hiddenfields (Access througt Javascript).

    HTH

    --
    Gruss, Peter Bucher
    Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
    http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
    http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
     
    Peter Bucher [MVP], Jun 30, 2008
    #2
    1. Advertisements

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. Vincent V
    Replies:
    0
    Views:
    440
    Vincent V
    Jul 8, 2003
  2. tacmec
    Replies:
    2
    Views:
    2,638
  3. J055
    Replies:
    11
    Views:
    21,602
    kurczak
    Jan 15, 2009
  4. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    18,295
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  5. Replies:
    0
    Views:
    616
  6. John Mott
    Replies:
    2
    Views:
    635
    John Mott
    Aug 11, 2007
  7. Replies:
    0
    Views:
    1,677
  8. Reid

    Unwanted Gridview Postbacks

    Reid, Nov 1, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    798
Loading...