Yes it is possible.
Maintain a status column for levels in
sql
.
For eg.
when user level is public insert status as 1,private as 2 and so on.Then get the value from table
check this like you did it in your question
if(status==1)
{
Response.Redirect("Public.aspx")
}
if(status==2)
{
Response.Redirect("private.aspx")
}