RequiredFieldValidator--write code in javascript
Answer Posted / gangadhar
function validate()
{
if(document.getElementById("NameId").value == null)
alert("Please enter the name");
document.getElementById("NameId").focus();
return false;
}
in button OnClick() we hav to cal this function
Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What is a postback in asp net?
Describe how ASP.NET maintains process isolation for each Web application?
if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.
What is the difference between login controls and forms authentication?
Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know
How to change Master page in ASP.Net using code?
What is the request flow used for asp.net mvc framework? : asp.net mvc
Explain how can we inherit a static member?
What is a session in programming?
Is asp.net and .net the same?
What is asp.net file?
Explain automatic memory management in .net.
What is asp.net futures?
Is web config mandatory?