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
Define globalization and localization.
What are the properties of the eventargs argument when capturing keyboard events?
How does session id work?
What is caching? Explain.
Why do we use web config?
What is a web pool?
What are the best practices to follow to secure connection strings in an ASP.NET web application?
Can you explain how ASP.NET application life cycle and page life cycle events fire?
What is the difference between custom web user control and a custom web server control?
What is cached data phone?
Explain the differences between clr & cts?
Define the steps to set up validation control.
What is break mode?
How to create events for a control?
What is the purpose of session management?