1. #1

    ASP.NET AJAX CallBack

    Hi all,

    I have a toolbar button which has to:

    1.Execute Server Side code
    2.Databind and refresh an gridview in updatePanel

    a. javascript to click on an button ( I can't see button)
    b. Javascript to click on coolite button (works ok)

    <DIV class=forum-code>
    toolbarBoton.Listeners.Click.Handler = String.Format("{0}", cooliteBoton.ClientID)

    c. AJAX Methods (can't refresh gridview)
    d. AJAX Event (cant' refresh gridview)
    e. Autpostback=true on toolbar button (makes full postback, rendering full page. Also tried inside UpdatePanel)

    I'm wondering if there is a cleaner way of firing a callback event, handle it server-side and update UpdatePanel .
    Why does coolite button makes this callback with no problems? is there a way to make toolbarbutton with same behaviour?

  2. #2

    RE: ASP.NET AJAX CallBack

    Any chance you could post a simplified .aspx sample demonstrating all the pieces of this problem?

    If you're updating the data in a GridPanel, you shouldn't have to wrap the thing in an UpdatePanel... but, maybe there's more going on than that?

    Geoffrey McGill
  3. #3

    RE: ASP.NET AJAX CallBack

    I think choice a is your best bet here. It's pretty clean too. Did you run into an issue with it?
    Last edited by geoffrey.mcgill; Mar 22, 2013 at 7:33 PM.

Similar Threads

  1. ajax request failure callback function help
    By [WP]joju in forum 1.x Help
    Replies: 1
    Last Post: Apr 30, 2010, 9:52 AM
  2. sync callback
    By gisxiaowei in forum 1.x Help
    Replies: 0
    Last Post: Aug 20, 2009, 11:50 AM
  3. Callback
    By hbbazan in forum 1.x Help
    Replies: 0
    Last Post: Jul 28, 2009, 3:52 PM
  4. Replies: 1
    Last Post: Jul 23, 2009, 3:57 AM
  5. How to update a gridview in ajax callback?
    By tangcan2003 in forum 1.x Help
    Replies: 1
    Last Post: Mar 04, 2009, 11:12 PM

Posting Permissions