login page code in asp.net



Share on Google+Share on Google+

shruthi vangapally
login page code in asp.net
1 Answer(s)      4 years and 11 months ago
Posted in : WebSevices

i need front end and backend code for login page in vb asp.net using sql server....having code for submit button in it.

View Answers

May 30, 2012 at 3:12 PM

The given code accept username and password from the user and check whether the entered username and password is valid.

Private Sub txtpwd_KeyPress(KeyAscii As Integer)
If KeyAscii = vbEnter Then
If Len(Trim(txtlogin)) > 0 And Len(Trim(txtpwd)) > 0 Then
If CheckPwd(txtlogin, txtpwd) = "ok" Then
MsgBox "Password ok"
MsgBox "Wrong password or Login not found."
End If
MsgBox "Login and password should not be blank"
End If
End If
End Sub
Private Function CheckPwd(cLogin As String, cPwd As String)

Dim rs As Recordset, ret As String
Set rs = opendatabase("c:\temp\login.mdb").openrecordset("select * from tbllogin where ucase(trim(logname)) = '" & UCase(Trim(cLogin)) & "'")
If rs.RecordCount <> 0 Then
If UCase(Trim(rs("pword"))) = UCase(Trim(cPwd)) Then
ret = "ok"
ret = "wrong"
End If
ret = "wrong"
End If
rs.Close: CheckPwd = ret
End Function


Related Tutorials/Questions & Answers:
login page code in asp.net
login page code in asp.net  i need front end and backend code for login page in vb asp.net using sql server....having code for submit button
need code for login in asp.net with c#
need code for login in asp.net with c#  hai iam trying to develop a project in asp.net with c#,so i need a code for login page using which admin and other users can log in.plz help me, thanks in advance
HTML login page code
the complete HTML JavaScript code for User Login Page. Thanks in Advance!   ...HTML login page code  Hi all, I am writing my first HTML JavaScrip...;td colspan=2><font size=3><center><b>HTML Login Page
program code for login page in struts by using eclipse
program code for login page in struts by using eclipse  I want program code for login page in struts by using eclipse
login page
login page  code for login page
HTML Login Page Code
HTML Login Page Code Here is an example of html login page code... JavaScript validation in Login page. We have set username and password value.... HTML Login page with JavaScript Validation <html> <body> <
code for user registration page and login page of emails using jsp
code for user registration page and login page of emails using jsp  hiiiiiii please send me the code for user registration page and login page of email using jsp and servlets and also code for database connectivity to oracle
Login page
Login page  how to create Login page in java
Login Page
Login Page  Can anyone tell me the steps to create a login page in myeclipse 7.0 and validating it with login database in db2 9.7 ??? Please tell me
login page
login page  pls say how to create a login page in jsp and mysql using netbaens   Hi Friend, Please visit the following links: http://roseindia.net/jsf/netbeans/index.shtml http://roseindia.net/jsp/loginbean.shtml
login page
login page  How to login as different user in php
login page
login page  hi i'm trying to create login page using jsp. i get... the program. Following are my programs... 1.index.jsp <%@page contentType="text/html" pageEncoding="UTF-8"%> JSP Page
LOGIN PAGE  A java program with "login" as title,menus added, and a text field asking for firstname, lastname, and displaying current date and time
asp.net  My project requrement is when somebuddy fill a web form then all form value will save on database table..& also save that data in excel file......is it any solution of this problem. the code language is asp.net &
Struts Login Validation. In This code setter of login page is called only one time again it doesnt call it. Why..?
Struts Login Validation. In This code setter of login page is called only one... page..."); log.info("Login page loaded successfully."); return...="com.credentek.recon.sms.action.IndexAction" method="login"> <
asp.net  Create a web page that has the restaurant fields like Name... on the page. When you enter information in the restaurant fields and click... in asp.net
coding for login page
coding for login page  coding for login page
Asp.net  how to show an output of an Asp.net project work on a mobile phone
asp.net  how to make online library management system using asp.net
asp.net  which place can use the WCF in most of the ASP.net projects
login page in php
login page in php  How to create a login page in php
ASP.NET  How to autogenerate id in Letters with numbers
jsp login page
jsp login page  hi tell me how to create a login page using jsp and servlet and not using bean... please tell how to create a database in sql server... please tell with code
ASP.NET  How to get multiple values of single textbox separated by commas using C
ASP.NET  How to get the value of dynamically added rows in a table using html
ASP.NET  what is the use of web.config file in ASP.NET programing... application. An Asp.net application has one web.config file which keeps the configurations... States, Error Handling, Security configurations in ASP.NET web.Config file
asp.net  i am generating excel file through data base, in excel cell text are displaying with green triangle on the corner, how to convert text to number through c sharp coding
php login and logout code
php login and logout code  Hi, Can anyone share there code for creating a user login and logout page in PHP?or any useful tutorial that can help to create a login and logout application in PHP.. Thanks in Advance
Spring Login Page Error
Spring Login Page Error  Dear Sir/Madam, I used the spring login page code. The index page is working fine. When i try to entry login and password , i am getting the below error: Please help me out in this. Let me know if i
swing login code
swing login code  code for the login form
SSL for login page
SSL for login page  I am trying to apply ssl cert to login page only. Does anyone know how to do this on a tomcat web server
Java Spring Hibernate Struts Training 6 SaaS Software Solutions Every Business Owner Should Consider WebServices Study Material What is the use of MySQL, MS SQL in Web Hosting paradigm? What do you understand by Domain Parking? What is difference between UNIX Hosting and Window Hosting? Expalin the Web Hosting Bandwidth/Space/Transfer What do you understand by Virtual Hosting? How to Upload Site Online? How to register domain name for my Company? How to track how many hits my website gets? create plugins to detect suspicious ajax chrome extension what timing attack {practically}??? any one can help me in my Ph.d thesis Accessing your site How to develope web service with exachanging xml message between computers using SOAP How to Convert SOAP Web service to REST Web service In Java ? add a new wcf service code to TFS and make it available to create an MSI. of its How we can integrate ASP .net website to payment gateway using SOAP xml request and response using wsdl. input fields to reject all inconsistent characters in webconfig Search operation in JSP page Where can I find reviews of IT solutions company in India to choose from? help regarding creation of last year project Select Box question Web Services Tutorials What is SOA and Webservices? PHP webdesign Pinting restful webservice request on UI. asp.net MaxClients apache httpd.conf max connections Large File reading through Axis2 Web service reg tutorial http://www.roseindia.net/webservices/netbeans/JAX-RPCAdvanceConcepts.shtml What is Web Development? Get GMT from IP WEB SERVICES Create a Web Service in Java using Apache Axis2 and Eclipse with Oracle database driven local host sharing on same network compute Internet and Web related questions for Web Master. web technology What is webservices? wifi problem wifi problem Overriding jaxb binding at client side? How to connect one application to some othe application through Rest json Database with dotnet while playing youtube in iphone appliation, coming black screen in iphone project? programming questions Web Analytics Java Runtime Exception: 0x4F4F:524A 0x4120:5445 0x4348:0D0A Restful webservice


Advertisement null