RequiredFieldValidator--write code in javascript

Answer Posted / srinivasan

function validate()
{
var Name = document.getElementById("txtName");
if( Name.value=="")
{
alert("Please enter the Name");
return false;
}
}

button OnClick() we hav to cal this function

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the contents of cookie?

567


what is meant by sitemapnode ?

1500


What are the disadvantages of view state?

594


What is asp.net localization?

499


What is the use of session in web application?

481






Out of ASP or ASP.NET which one is stateless?

676


1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?

1778


What are query strings used for?

529


What is page fragment caching?

553


Explain the significance of routing? : asp.net mvc

536


Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc

528


How do active server pages work?

546


How would ASP and ASP.NET applications run at the same time on the same server?

1942


Diff between web user control and web custom control?

496


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

595