//assuming that there is a button and a textbox...
here is the code:
dim s as string
s = "select fieldname,fieldname from tablename"
dim con as new oledbconnection="connection string"
dim a as new oledbcomamnd(s,con)
dim dr as DataReader
dr = a.DataReader
if dr.hasrows then
dr.read
session("userid") = s("username")
end if
--i have tried this code, and i've tried to input several userid's not included in the database, and clicked the login button.well, it logged in!!!!
--what should i do in order to determine if the inputted userid is valid for access to another page?
--what is the missing condition that filter all invalid userid's?
--open for suggestions.thanks in advance.
...
Go to the complete details ...