RequiredFieldValidator--write code in javascript
Answer Posted / amit das
function validate()
{
if(document.getElementById("NameId").value == null)
alert("Please enter the name");
document.getElementById("NameId").focus();
return false;
}
or
function validate()
{
with(document.formname)
{
txtboxid.value == ""
alert("Please enter value");
txtboxid.focus();
return false;
}
}
or we can use
document.form.txtboxid.value
instead of
document.getElementById("NameId").value
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
A web service can only be written in .net? State whether true or false.
What is a server farm in iis?
Can you explain autopostback?
What is redirectpermanent in asp.net?
How can we create custom controls in asp net?
If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?
Define web services in asp.net.
What is _viewstart?
Is post back property in asp net?
How do sessions work?
What is the difference between session object and application object?
Describe the difference between inline and code behind - which is best in?
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
Describe the disadvantage of cookies.