Exemplo n.º 1
0
        public void Bind()
        {
            var id = Request.Params["action"] == null?Guid.NewGuid() : Guid.Parse(Request.Params["action"]);

            var data = MapSvc.GetMapById(id);

            if (data == null)
            {
                ReturnMsg rm = new ReturnMsg()
                {
                    Code    = StatusCode.Error,
                    Message = "数据丢失,请稍后再试",
                    Data    = null
                };
                Session["msg"] = rm;
                Response.Redirect("Users_List.aspx");
            }

            this.txtSite.Text  = data.Map_Site;
            this.txtPhone.Text = data.Map_Phone;
        }