C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Errors and Solutions » General »

Client side validation in javascript


Posted Date: 31 Aug 2009    Resource Type: Errors and Solutions    Category: General
Author: ramaraoMember Level: Bronze    
Rating: 1 out of 5Points: 3



When we perform client side validations using javascript:


<script language="javascript>
function validate()
{
var txtCollege=document.getElementById("<%=txtCollege.ClientID%>");
if(txtCollege.value=="")
{
alert('Enter CollegeName');
txtCollege.focus();
return false;
}
}
<script/>


here is call button event:


onkeypress="return validate()"



Responses

Author: Shameer    19 Nov 2009Member Level: Silver   Points : 0
Please let me know what is the problem you face?


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Javascript  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Listbox behaviour of page up-down key in mozila
Previous Resource: SQL BULK COPY error: invalid attempt to call fieldcount when reader is closed Error
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use