Feb 06, 2009, 5:29 PM
ASP.NET AJAX CallBack
Hi all,
I have a toolbar button which has to:
1.Execute Server Side code
2.Databind and refresh an asp.net gridview in updatePanel
workarounds:
a. javascript to click on an asp.net button ( I can't see asp.net button)
b. Javascript to click on coolite button (works ok)
<DIV class=forum-code>
toolbarBoton.Listeners.Click.Handler = String.Format("{0}.events.click.fire()", cooliteBoton.ClientID)
</PRE>
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?
thanks!
I have a toolbar button which has to:
1.Execute Server Side code
2.Databind and refresh an asp.net gridview in updatePanel
workarounds:
a. javascript to click on an asp.net button ( I can't see asp.net button)
b. Javascript to click on coolite button (works ok)
<DIV class=forum-code>
toolbarBoton.Listeners.Click.Handler = String.Format("{0}.events.click.fire()", cooliteBoton.ClientID)
</PRE>
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?
thanks!