I have a login sub that fills a repeater if the username and password match. If the repeater count is 0, the username and password did not match. If the count is > than 0, then redirect user.
Now, I have to check for user types. I have a field called user_types within the users table that contains either "1" for regular user or "2" for manager.
Basically, I want to do something like this within the repeater on databind:
If Eval("user_type") = 1 Then
I get an error when trying to use Eval. Is this code possible within the repeater or is there a way to retrieve the value of eval("user_types") wthin a sub? Maybe a way to pass the eval("user_types") value to a sub on databind, then do the redirect?
-Thanks in advance.