Write a code for "RequiredFieldValidator" in java script
Answer Posted / sudhakar sakthivel
function validate()
{
if(document.getElementById("NameId").value == null ||
document.getElementById("NameId").value.trim()=="")
alert("Please enter the name");
document.getElementById("NameId").focus();
return false;
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Web API uses which library for JSON serialization?
What is ispostback method in asp.net? Why do we use that?
Are cookies client side or server side?
is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?
What is postback in asp net?
What do you mean by authorization?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
To redirect the user to another page which method do we use without performing a round trip to the client?
Is it possible to write code in many languages in one asp.net project?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
Define what is razor? : asp.net mvc
Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?
What are the advantages of using Master Pages?
What is data reader in asp.net?
Explain the use of errorprovider control in .net?