Beispiel #1
0
        private void LoadService()
        {
            DataTable   dt;
            DAC_Service oDAC_Service = new DAC_Service();

            dt = oDAC_Service.SelectService();

            if (dt.Rows.Count > 0)
            {
                dropService.DataSource     = null;
                dropService.DataSource     = dt;
                dropService.DataTextField  = "service_name";
                dropService.DataValueField = "idmainservice";
                dropService.DataBind();
            }
        }
Beispiel #2
0
        public void LoadData()
        {
            try
            {
                DataTable   dt;
                DAC_Service oDAC_Service = new DAC_Service();
                dt = oDAC_Service.SelectService();
                String StrInnserHtml = "";

                if (dt.Rows.Count > 0)
                {
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        StrInnserHtml = StrInnserHtml + "<tr><td>" + dt.Rows[i][1].ToString() + "</td><td>" + dt.Rows[i][2].ToString() + "</td><td>" + dt.Rows[i][3].ToString() + "</td><td> " + dt.Rows[i][4].ToString() + " </td><td> " + dt.Rows[i][5].ToString() + " </td><td><a href='frmService.aspx?ID=" + dt.Rows[i][0].ToString() + "'>Edit</a></td></tr>";
                    }
                }
                divInnerHtml.InnerHtml = StrInnserHtml;
            }
            catch (Exception ex)
            {
                throw;
            }
        }