i need a session variable to change from page to page as i move from one page to another vb.net -
I'm new to this. I have 4 page Login.aspx, account.aspx, settings.aspx and fliers.aspx all sql server programmed in vb.net with backend code on my first page, login.aspx me .vb page -
dim SQL as string = "sELECT * fROM table 1 email" = + "ME.txtUserName.Text +" 'and password =' "+ Me.txtPassword.Text +" ExecuteNonQuery (SQL) SqlCmd = new SqlCommand (SQL, SqlCnn) SqlDR = SqlCmd.ExecuteReader If SqlDR.HasRows then SqlDR.Read () Label1.Text = "successfully connected" new web user (Skyuelar ( "email"), Op. Item ("SKLCNA N ") as here, the web user. Aitim (" Vebusr ") = Web user is ValidUser = True Loop Else Label1.Text =" failed login "end if
as you can see it as an email session.item ( "web user"). this right is the next page on the page account.aspx, has to be replaced with the user ID which connected and settings When entering the .aspx page, it's user ID with that user's Profile ID Require change. All these tables are in the backend and the data is there, but the problem is that I lack the knowledge how can I make different variations in this session.
Yaks are huge security issues with your code:
SQL In addition, you should use the membership provider and form-based authentication:
Finally, to set a session value, simply enter Session ("value name") = value
Comments
Post a Comment