AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
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
Hi,

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.

http://www.aspdotnetcodes.com/Ajax_ModalPopup_PostBack_GridView.aspx
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
The Beginner's Guide to Joomla
Programmers Heaven C# School Book - Free 338 Page eBook
Washington Technology