RequiredFieldValidator--write code in javascript

Answer Posted / gangadhar

function validate()
{
if(document.getElementById("NameId").value == null)
alert("Please enter the name");
document.getElementById("NameId").focus();
return false;
}

in button OnClick() we hav to cal this function

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is preprocessor in .net and type, where it use?

666


What is mvc in angular?

571


What is session handling in a webfarm, how it can work with its limits?

636


Can more than one person use the same login?

584


What are client activated objects and server activated objects?

529






How to deploy/publish webservices?How many ways?Plz explain me

1848


What is the parent class of all web server control?

545


How to send a DataReader as a parameter to a remote client ?

2733


Less than one page, how many windows will you be able to maintain?

577


What are the Difference between asp.net and asp ?

577


Explain server-side scripting and client-side scripting.

524


Which control has default post back is enabled(true)?

616


What is session in asp.net?

533


What is a page life cycle? What are the events in a page life cycle?

499


What is difference between session and application in asp net?

500