我还是新手使用 Asp.net 和 vb.net
Protected Sub login_Click(ByVal sender As Object, ByVal e As EventArgs) Handles login.Click
Dim querystrings As String = "Select Email, Password ,Roles, Nama_Depan, Nama_Belakang from Employee where Email = @email;"
Dim con As New SqlConnection(connected)
Dim cmd As New SqlCommand(querystrings, con)
Dim myreader As SqlDataReader
Session ("Namadepan")= cmd.Parameters("Nama_Depan")
end sub
我想用会话存储角色、Nama_Depan、Nama_Belakang 但我不知道如何