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


Please Help Members By Posting Answers For Below Questions

Why web api is better than wcf?

823


What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.

822


Explain how dot net compiled code will become platform independent?

787


What does it mean your session has timed out?

755


What are the new data controls in asp.net 2.0?

732


Describe Segmentation With Paging?

840


What is the difference between a multi-layer and multi-tier applications?

809


What are validator? Name the validation controls in asp.net?

779


What is the sequence in which ASP.NET events are processed?

731


How does session id work?

707


How do you initiate validation on the server manually? What are two situations when you might you want to do that?

1601


Explain about Automatic resource management?

839


What is the application pool?

758


Why asp.net is better than php?

720


What are the differences between application object and session object?

764