How do you call java script in web forms ex. you develop one web form in that you using java script in that java script how you will call in web forms.

Showing Answers 1 - 2 of 2 Answers

Javascript APIs can be called from Web Form, when a web form event get triggered. To call a javascript method on a Server control , the javascript method needs to be associated with a specific server control event in the code behind.eg:Button1.Attributes.Add("onclick","javascriptValidate();");To call a javascript method on a html control, the javascript method needs to be associated with a specific html control event in the desin-html view.Hope this helps

  Was this answer useful?  Yes

kiran kumar

  • Sep 18th, 2007
 

No its not working if i am writing the method it is simply printing method in html screen

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions