Hi,
You can write code as below.
string usreType = DropDownList.SelectedItem.Value;
bool IsValidUser =
if(IsValidUser)
{
switch(userType)
{
case : "Admin"
break;
case : "Executive "
break;
}
}
else
{
}
The best way to implement this senario is to first validate user with user name and password. And then validate type of user with user name and password. By using this technique you can display more appropriate error message.