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 meant by ispostback in asp net?
Why the javascript validation not run on the asp.net button but run successfully on the html button?
Write code to send e-mail from an asp.net application?
What are the types of session in asp.net?
What is a session http?
What is a web api? Which protocol is used in a web api?
What is the size of Get method and how much data it can store?
How to reduce the width of textbox in editcommandcolumn of datagrid?
how to write html code with ssl
What are the advantages of using session?
What is global.asax file used for?
Can we have a web application running without web.config file?
What is _viewstart?
Explain the use of resource manager class in .net.
What is Pre-Render event in ASP.NET?