Write a code for "RequiredFieldValidator" in java script
Answer Posted / jayamala
function validate()
{
if(document.getElementById("NameId").value =="")
alert("Please enter the name");
document.getElementById("NameId").focus();
return false;
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is the difference between equals() and == in c#?
What is the used of "ispostback" property?
What are the features that make asp.net more used framework? : asp.net mvc
What are the various ways to send content from one page to another?
What is autopostback in dropdownlist in asp net?
How do you implement postback with a text box?
Define static constructor?
Explain different types of Caching techniques in ASP.NET?
What’s the difference between response .redirect and server.transfer?
State differences between MVC and WebAPI
What is base class of .net?
How is a session stored and maintained in asp.net?
What is difference between Fragment Caching and Page Caching in ASP.NET?
What are Authentication and Authorization?
What is AutoPostback?