Write a code for "RequiredFieldValidator" in java script
Answer Posted / amit patel
function validate()
{
if(document.getElementById('<%=Name.ClientID%>').value
== "")
alert("Please enter the name");
document.getElementById("Name").focus();
return false;
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is global.asax file used for?
What is the difference between mvc and asp.net? : Asp.Net MVC
What is difference cookie and session?
What is an example of an application service provider?
Can we have multiple web config files for an asp.net application?
How do cookies work?
What is session id in web application?
What is the use of asp.net web api?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
What is the difference between runtime version and version?
How you can access the values from the Repeater control in ASP.NET?
What are validator? Name the validation controls in asp.net? How do you disable them?
What is ispostback property?
Explain the asp.net mvc folder conventions? : asp.net mvc
Is asp.net mvc front end or backend? : Asp.Net MVC