Exemplo n.º 1
0
        public void BindAll_Zones()//created By Gajendra Singh
        {
            DataSet getzone = new DataSet();

            getzone = ob.fn_get_z_name();

            Ddlzone.DataTextField  = "Zone_Name";
            Ddlzone.DataValueField = "Zone_id";
            Ddlzone.DataSource     = getzone;
            Ddlzone.DataBind();
            Ddlzone.Items.Add(new ListItem("--Select--", "0"));
            Ddlzone.SelectedValue = "0";
        }
Exemplo n.º 2
0
        public void BindAll_Zones()//created By Gajendra Singh
        {
            //  string zone = DropDownList2.SelectedItem.Text;
            //  ConvertDataTabletoString(zone);
            DataSet getzone = new DataSet();

            getzone = ob.fn_get_z_name();

            Ddlzone.DataTextField  = "Zone_Name";
            Ddlzone.DataValueField = "Zone_id";
            Ddlzone.DataSource     = getzone;
            Ddlzone.DataBind();
            Ddlzone.Items.Add(new ListItem("--Select--", "0"));
            Ddlzone.SelectedValue = "0";
        }