Saturday, March 24, 2012

Call Client script from Server Side

Hi All,

I want to call javascript function from server side when I am using updatePanel.

Actual Scenario is as follows:

I have one form A.aspx in which I have a button named "btn_display" and this button is in Update Panel.

Now I call server side function on btn_display_click and from that server side function i want to call javascript function.

How should I proceed??

Plz help

Thanks in advance

HI,
You can use registerclientscriptblock to allow the client script to work from a serverside event

Hello, RegisterStartupScript is more appropriate for this.

Regards. -LV

No comments:

Post a Comment