public void BindDDLstd() { string std = "Standard"; DDLstandard.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup_ForDropdown(std, "DropDown"); DDLstandard.DataBind(); DDLstandard.Items.Insert(0, new ListItem("-STD-", "0")); }
protected void Page_Load(object sender, EventArgs e) { if (Session["ChetanaCompanyName"] != "" || Session["ChetanaCompanyName"] != null) { if (Session["FY"] != "" || Session["FY"] != null) { strChetanaCompanyName = Session["ChetanaCompanyName"].ToString(); strFY = Session["FY"].ToString(); } else { Session.Clear(); } } if (!Page.IsPostBack) { GetValidation(3, Convert.ToInt32(Session["Role"])); ModalPopUpDocNum.Show(); TxtDocNo.Focus(); string grp = "BookSet"; DDLSelectSet.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup_ForDropdown(grp, "DropDown"); DDLSelectSet.DataBind(); DDLSelectSet.Items.Insert(0, new ListItem("-Select book set-", "0")); string std = "Standard"; DDLstandard.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup_ForDropdown(std, "DropDown"); DDLstandard.DataBind(); DDLstandard.Items.Insert(0, new ListItem("-STD-", "0")); // txtdocDate.Text = DateTime.Now.ToString(sDateFormat); txtChalDate.Text = DateTime.Now.ToString(sDateFormat); // txtDeliverydte.Text = DateTime.Now.ToString(sDateFormat); // txtOrdDate.Text = DateTime.Now.ToString(sDateFormat); //txtorder.Focus(); Session["tempDCData"] = null; // Openpopup(2).; // btncancel.Visible = false; //Session["tempDCData"] = null; Bindcustomer(); // DCMaster.Get_Transporter(custcode); lblZoneCode.Visible = false; DDLZone.Visible = false; } }