Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

A web service can only be written in .net? State whether true or false.

952


What is a server farm in iis?

993


Can you explain autopostback?

930


What is redirectpermanent in asp.net?

1026


How can we create custom controls in asp net?

977


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?

955


Define web services in asp.net.

998


What is _viewstart?

857


Is post back property in asp net?

981


How do sessions work?

886


What is the difference between session object and application object?

1013


Describe the difference between inline and code behind - which is best in?

1002


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

6538


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?

2924


Describe the disadvantage of cookies.

976