...not sure why. new to .net, read most of wrox beginning asp.net w/
vb.net. too much stuff is unexplained.
here's my code. i believe that the the problem exists in the catch section, just after i assign a value to Sesion("Email"). all other Session variables are not set, except Session("Error"), which informs me of the catch.:
<%@ Page Language="
VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.Oledb" %>
<%
Dim strCon as String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = " & _
"D:\Inetpub\wwwroot\Network.mdb;"
Dim sql as String = "SELECT pwdPassword FROM tblPasswords WHERE memEmail='" & _
LCase(Trim(Request("txtLogEmail"))) & "';"
Dim con as New OledbConnection( strCon )
con.Open()
Try
Dim cmd as New OledbCommand( sql, con )
Dim rdr as OledbDataReader
rdr = cmd.ExecuteReader()
If rdr.Read()=False Then
Session("Error") = "Email address not registered."
elseif rdr("pwdPassword") <> Trim(Request("txtLogPassword")) then
Session("Error") = "Password incorrect."
Else
Session("Email") = LCase(Trim(Request("txtLogEmail")))
rdr.Close()
sql = "SELECT * FROM tblMembers WHERE memEmail='" & session("Email") & "';"
Dim cmd2 as New OledbCommand( sql, con )
Dim rdr2 = cmd2.ExecuteReader()
Session("Name") = rdr2("memName")
Session("Alias") = rdr2("memAlias")
Session("MI") = rdr2("memMI")
Session("Surname") = rdr2("memSurname")
Session("Address") = rdr2("memAddress")
Session("City") = rdr2("memCity")
Session("AC") = rdr2("memAC")
Session("Telephone") = rdr2("memTelephone")
Session("URL") = rdr2("memURL")
Session("Width")= rdr2("memWidth")
Session("Blurbs") = rdr2("memBlurbs")
rdr2.Close()
End if
Catch
Session("Error") = "TROUBLE! :("
End Try
con.Close()
sql = ""
Response.Redirect( "index.aspx" )
%>