U can use this simple way
SqlConnection con = new SqlConnection("Connection string");
con.Open();
DataSet ds = new DataSet();
SqlCommand cmd = new SqlCommand("select User_Type from TableName", con);
SqlDataAdapter da = new SqlDataAdapter();
cmd.CommandType = CommandType.Text;
da.SelectCommand = cmd;
da.Fill(ds);
if(ds.Tables[0].Rows.Count > 0)
{
int usertype = Convert.ToInt32(ds.Tables[0].Rows[0]["User_Type"]);
if(usertype==1)
{
Response.Redirect("dashboard.aspx");
}
else if(usertype==2)
{
Response.Redirect("user_dashboard.aspx");
}
}
else
{
//record is not in ur table
}