Exemple #1
0
        private void SaveEditHandler(object sender, EventArgs e)
        {
            Hose hose = GetObjectFromControls <Hose>(EditTableDiv.Controls);

            hose.DateInstall   = Request.Form[DATE_INSTALL];
            hose.DateDeinstall = Request.Form[DATE_DEINSTALL];

            DataInsertCache(mark + Hose_num, hose);
            Response.Redirect("~/metalhoses/" + Hose_num);
        }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Hose_num = Hose_no_input.Value;
     if (!string.IsNullOrEmpty(Hose_num))
     {
         Hose hose = GetDataFromCache <Hose>(mark + Hose_num);
         if (hose != null)
         {
             hoses_list.Add(hose);
             TableBinding(Repeater1, hoses_list);
         }
     }
 }
Exemple #3
0
        protected void Page_PreRender(object sender, EventArgs e)
        {
            Hose Hose = GetDataFromCache <Hose>(mark + Hose_num);

            if (Hose != null)
            {
                dict = GetDictFromObject(Hose);
                FillControls(dict, EditTableDiv.Controls);

                Page.ClientScript.RegisterHiddenField(DATE_INSTALL + "_hidden", Hose.DateInstall);
                Page.ClientScript.RegisterHiddenField(DATE_DEINSTALL + "_hidden", Hose.DateDeinstall);
            }
        }