比较ASCII字符(用户权限)

来源:互联网 发布:未来10年php和java比较 编辑:程序博客网 时间:2024/05/29 02:23
 

 string s = Session["usertype"].ToString();
                    string s2 = "I";
                    char[] k = new char[] { char.Parse(s), char.Parse(s2) };
                    if (k[0] > k[1])
                    {
                        Response.Redirect("main.aspx");
                    }
                    else
                    {

                        Response.Redirect("myhome.aspx");
                    }