Can we use the java script code in .Net Code behind?

Answer Posted / raj

yes we can use java script code in .Net in code behind

suppose we have a validation on button click event based on id
button1
then

button1.attributes.add("OnClick",retun functionname);

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is AutoPostback?

777


In which event of the page life cycle, is the viewstate available?

681


What are sql notifications and sql invalidations?

691


Why is global asax is used for?

704


What is the difference between mvc and asp.net? : Asp.Net MVC

661






What are the main requirements for caching?

740


Explain exception handling in .net.

803


Do gac'ed assemblies have fulltrust?

829


Explain the updatepanel?

768


Define globalization and localization.

732


Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?

2240


What is the difference between runtime version and version?

731


When was asp.net released?

725


What is an example of an application service provider?

631


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1595