Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
Questions & Answers
Tips & Tricks
 javascript in User control
Posted by ananthan on  2/17/2011 2:47:33 AM Category: ADO.NET
Add to my favorites
Email to friend
i have loginid and password textbox in user control how to validate this controls using javascript

Post Your Reply Post New Question

 Viewer's Reply
Validate User name and Password using JavaScript
Answered By Moderator1 on 3/11/2011 9:46:13 PM

You can do this using web service and JavaScript. You need to write a web service that takes user name and password as parameter. Then you need to call the web service in your user control using JavaScript function. Based on the return value, you can display prompt the user if the login credential are invalid.

Sample code to consume Web service through JavaScript is available at the below url. Change it according to your requirement.
Post Your Reply If you still have problem, post it again under this reply for better response.

Sponsored by
The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition - Free 207 Page Preview!
Integrating Silverlight 4 with SharePoint 2010 - Free 42 Page Sample Chapter
Many .NET teams are underperforming, is yours?