Write a code for "RequiredFieldValidator" in java script
Answer Posted / manoj
suppose the id of the field required to be validated is
NameId
Thus:-
function validate()
{
if(document.getElementById("NameId").value == null)
alert("Please enter the name");
}
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?
How long do session variables last?
Securitywise What are the Enhancements in 2.0?
Explain the concept of MVC Scaffolding?
What is diff. Between abstract class and an interface?
How to manage different kinds of sessions in ASP.NET?
Which is faster viewbag or viewdata?
Explain method to handle error using HttpError in Web API?
Are xaml file compiled or built on runtime?
What is a master page and what does it do?
What is the Intermittent crashing of application in production?
What is the mvc model?
Do you know using sql cache invalidation?
What is razor? : asp.net mvc
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?