Exemplo n.º 1
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;
    }