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
Which object wraps the state or data of a user?
What is a postback in asp net?
Tell me the code snippet to show how we can return 404 errors from HttpError?
How to reduce the width of textbox in editcommandcolumn of datagrid?
What are the merits and demerits of viewstate?
How many types of state management are there in asp net?
Explain diff. Betn dataset and recordset?
How do you use viewstate?
What is difference between ispostback and autopostback in asp net?
What is application session?
Does web services support data reader like pom project?
Where is session data stored in asp net?
What is validation in asp.net?
Why is an object pool required?
When we use cookie less session? Explain its working?