W
Wayne P.
I'm getting said error on the line Do While reader.Read()
Looks like reader is defined to me.....so I'm lost....
This is for role based security, and this sub is in Global.asax if it makes
any difference.
Sub RoleAuthentication_RetrieveRoles(ByVal sender As Object, ByVal args As
RetrieveRolesArgs)
Dim RoleList As ArrayList
Dim reader As System.Data.SqlClient.SqlDataReader
reader = SqlHelper.ExecuteReader("Data
Source=""DEVPC\VSDOTNET"";database=web;user=webuser;password=test;",
CommandType.StoredProcedure, "Login", New SqlParameter("@username",
args.UserId))
Do While reader.Read()
RoleList.Add(reader("name"))
Loop
args.Roles = RoleList.ToArray(GetType(String))
End Sub
Thanks!
Wayne P.
Looks like reader is defined to me.....so I'm lost....
This is for role based security, and this sub is in Global.asax if it makes
any difference.
Sub RoleAuthentication_RetrieveRoles(ByVal sender As Object, ByVal args As
RetrieveRolesArgs)
Dim RoleList As ArrayList
Dim reader As System.Data.SqlClient.SqlDataReader
reader = SqlHelper.ExecuteReader("Data
Source=""DEVPC\VSDOTNET"";database=web;user=webuser;password=test;",
CommandType.StoredProcedure, "Login", New SqlParameter("@username",
args.UserId))
Do While reader.Read()
RoleList.Add(reader("name"))
Loop
args.Roles = RoleList.ToArray(GetType(String))
End Sub
Thanks!
Wayne P.