C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Java Script Validations


Posted Date: 12 Aug 2008    Resource Type: Code Snippets    Category: Javascript

Posted By: Vivek Sharma       Member Level: Gold
Rating:     Points: 7




We will use java script(client side) validation control with an example of Registration Form
On Registration Form we will assume some common field on the form thn we will implement the java script on that fields.Suppose we have
Textbox for Firstname = txtFirstname (Required field)
Textbox for postalcode = txtPostalcode (Numeric value)
Textbox for Email = txtEmail (Regular Expressions)


On source page we will make a function of java script





And now on cs page we will call the function (validate) on page load

Suppose the id of the button is btnRegister

On page load


btnRegister.Attributes.Add("onClick", "return validate();");

Have a nice day and enjoy client side validations.
Vivek Sharma




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Requiredfield validation  .  Regular Expression  .  Numericvalue only  .  Javascript validations  .  Clientside validations  .  

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: Open File using its Name
Previous Resource: Java script validations
Return to Discussion Resource Index
Post New Resource
Category: Javascript


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

online optimum rewards

Contact Us    Privacy Policy    Terms Of Use