RequiredFieldValidator--write code in javascript
Answer Posted / srinivasan
function validate()
{
var Name = document.getElementById("txtName");
if( Name.value=="")
{
alert("Please enter the Name");
return false;
}
}
button OnClick() we hav to cal this function
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is the difference between user control and custom control?
What is cookies in asp net?
Can we add code files of different languages in app_code folder?
Which class is used to send an email message from an ASP.NET Web page?
How can you implement encapsulation in asp.net?
Why mvc is better than asp.net? : Asp.Net MVC
Explain the difference between debug.write and trace.write?
What is difference between viewstate and session in asp net?
What is the difference between rest and restful?
How to Insert/Add in ASPXgridview
How many types of validation are there?
Elaborate differentiation between ViewState and SessionState?
In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?
Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
What is the difference between localization and globalization?