I am following the code in a previous thread and cannot access SQL database. See attached login.aspx and login.aspx.vb files. Database file is a simple "Users" filw with AutoID, username, email and password. What am I doing wrong? Any help is greatly appreciated.
aurora1234 0 Newbie Poster
Recommended Answers
Jump to PostI guess to start with...
What, if any, errors are you receiving when you attempt to run this code? This might help to narrow down the specific components of the code to look at.
Jump to Postrty this code for login it properly works for me as i updated for you.
Dim strConn As String strConn = WebConfigurationManager.ConnectionStrings("iPesha").ConnectionString Dim Conn As New SqlConnection(strConn) Conn.Open() Dim sqlUserName As String= "SELECT UserName,Password FROM Users " cmd =new sqlCommand(sqlUserName,con) dim dr as SqldataReader dr=cmd.ExecuteReader() if dr.HasRows=true …
All 7 Replies
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster
aurora1234 0 Newbie Poster
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster
aurora1234 0 Newbie Poster
hirenpatel53 -1 Posting Whiz in Training
pritesh2010 30 Posting Whiz in Training
aurora1234 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.