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

            if (!string.IsNullOrEmpty(Request["lift"]))
            {
                _lift = HttpUtility.HtmlDecode(Request["lift"]);
            }

            if (!IsPostBack && !string.IsNullOrEmpty(_lift))
            {
                App_Code.Base db = new App_Code.Base(WebConfigurationManager.ConnectionStrings["DefaultConnection"].ToString());
                List <App_Code.Base.PrimView> data = db.GetPrimView(_lift, Request.RawUrl);
                Prim.DataSource = data;
                Prim.DataBind();
            }
        }