client side function calling by server side control

Posted by Dave.Chintan.M under ASP.NET on 3/2/2012 | Points: 10 | Views : 3388 | Status : [Member] | Replies : 1
how to call client side function using server controls in asp.net????????


like i have a serverside button i want to call client side function (javascript function)..............
howwwwwwwwwwww???????????

chintan


Responses

Posted by: Hmanjarawala on: 3/2/2012 [Member] Bronze | Points: 25

Up
0
Down
you can call it like:

Page.ClientScriptManager.RegisterStartupScript(this.GetType(), "onclick", "<your-javascript-function-name>", false);


Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Dave.Chintan.M, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response