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 tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
What is the importance of Global.asax in ASP.NET?
Describe how passport authentication works.
How to retrieve user name in case of Window Authentication?
Please briefly explain the usage of global.asax?
What is session object? Describe in detail.
Describe the .net base class library.
Define page output caching?
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
What are the different validators in asp.net?
What is web api vs wcf?
What is session handling in a webfarm, how it can work with its limits?
How can you implement encapsulation in asp.net?
What is meant by asp.net?
Which is faster viewdata or viewbag?