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 are the elements of a website?
What are the parts of an http response?
What are validators and list some validators of asp.net?
What are navigation controls? How many navigation controls are there in ASP.NET 4.0?
Explain difference betn dataset and recordset?
WSDL means?
How does session work in asp net?
Define a web service in .net?
Why viewstate is used in asp.net?
Difference between overriding and overloading?
What are the different types of events are occured when a client requests an ASP.NET page from IIS server?
How u refer webservices?
Who can consume WebAPI?
What are the advantages of using session?
What is the maximum number of classes that can be contained in one dll file?