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

How ASP.NET page works?

758


What is query string in asp.net?

647


How do you implement sql caching in asp.net?

656


Is a dll file an executable?

635


What is anonymous authentication?

675






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

583


Can the dictionary object be created in client?s scope ?

2074


Define a static class?

624


Explain about Multi-Language integration?

688


What is the maximum timeout we can set for Cookies?

626


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

1835


What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?

1606


Define session in asp.net.

647


Is session stored in browser?

621


Difference between .NET and previous version?

2208