62,046
社区成员
发帖
与我相关
我的任务
分享
public partial class System_CompanyForm : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["MyForbid"] != null)
{
string MyForbidString = Session["MyForbid"].ToString();
if (MyForbidString.IndexOf("E2") > 1)
{
Server.Transfer("~/SystemManage/AllErrorHelp.aspx");
}
}
if (Session["MyForbid"] != null)
{
string MyForbidString = Session["MyForbid"].ToString();
if (MyForbidString.IndexOf("E2") > 1)
{
Server.Transfer("~/SystemManage/AllErrorHelp.aspx");
}
}
if (Session["MyForbid"] != null)
{
string MyForbidString = Session["MyForbid"].ToString();
}
改成
string MyForbidString
if (Session["MyForbid"] != null)
{
MyForbidString = Session["MyForbid"].ToString();
}