Esempio n. 1
0
        protected void PopulateHealthSafety()
        {
            try
            {
                oDV = AdoUDIRS.GetHealthSafety();

                if (AdoUDIRS.BlnError)
                {
                    //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError;
                    return;
                }
                else if (oDV.Count == 0)
                {
                    //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError;
                    return;
                }
                else if (oDV.Count > 0)
                {
                    chkHealthSafety.DataSource     = oDV;
                    chkHealthSafety.DataValueField = "Id";
                    chkHealthSafety.DataTextField  = "Title";
                    chkHealthSafety.DataBind();
                }
            }
            catch (Exception ex)
            {
                //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError;
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            oDV = AdoUDIRS.GetHealthSafety();
            string fruits = "";

            for (int i = 0; i < oDV.Count; i++)
            {
            }

            //oDV = AdoUDIRS.Regist("Visitor", "*****@*****.**", "j789rt", "Saleem", "Abdul", "23326666",
            //                      "05341039", "*****@*****.**", "Male", "");


            if (AdoUDIRS.BlnError)
            {
                lblMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError;
            }

            // Sub_cat.Text = oDV[0]["Title"].ToString();
        }
Esempio n. 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     oDV = AdoUDIRS.GetHealthSafety();
 }