Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            CheckAccount();

            if (!string.IsNullOrEmpty(Request["U"]))
            {
                idU = HttpUtility.HtmlDecode(Request["U"]);
            }
            if (!string.IsNullOrEmpty(Request["M"]))
            {
                idM = HttpUtility.HtmlDecode(Request["M"]);
            }

            if (!IsPostBack)
            {
                App_Code.Base db = new App_Code.Base(WebConfigurationManager.ConnectionStrings["DefaultConnection"].ToString());
                List <App_Code.Base.StoppedLift> list = db.GetStoppedLifts(idU, idM);
                Stop.DataSource = list;
                Stop.DataBind();
            }
        }