コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["CustomerName"] == null)  //用户未登录
        {
            Response.Redirect("~/Login.aspx");
        }
        string name   = Session["CustomerName"].ToString();
        string status = Request.Form["status"];
        string url    = ecsService.SelectEcs(name).Url;
        string info   = "";

        if (status == "1")
        {
            status = "open";
            info   = name + "开启了他的页面展示:" + url;
        }
        else
        {
            status = "close";
            info   = name + "关闭了他的页面展示:" + url;
        }
        ecsService.UpdateStatus(status, name);
        boardService.Insert(info);
        Response.Write("ok");
    }
コード例 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["CustomerName"] == null)  //用户未登录
        {
            Response.Redirect("~/Login.aspx");
        }
        string name = Session["CustomerName"].ToString();
        Ecs    ecs  = ecsService.SelectEcs(name);

        status = ecs.Status;
    }
コード例 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["CustomerName"] == null)  //用户未登录
        {
            Response.Redirect("~/Login.aspx");
        }
        name = Session["CustomerName"].ToString();
        if (!ecsService.IsNameExist(name))
        {
            ecsService.Insert(name);
        }
        Ecs ecs = ecsService.SelectEcs(name);

        host     = ecs.Host;
        username = ecs.User;
        password = ecs.Password;
        url      = ecs.Url;
    }