protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { hfdperid.Value = Request.QueryString[0].ToString(); Utilities_Licensing.BindDropdown(ddl_status1, 53); Utilities_Licensing.BindDropdown(ddlnewappstatus, 24); Utilities_Licensing.BindDropdown(ddlappreason, 28); Utilities_Licensing.BindDropdown(ddlmailorderstatus, 53); Utilities_Licensing.BindCheckboxlist1(chkschedules, 68); Utilities_Licensing.Bind_LicenseTypes_Business(ddl_buslictypes); Utilities_Licensing.BindLicType(ddllictype, Convert.ToInt32(hfdperid.Value)); Utilities_Licensing.BindLicType(ddl_licensetype, Convert.ToInt32(hfdperid.Value)); Utilities_Licensing.BindLicType(ddl_schedulelicensetype, Convert.ToInt32(hfdperid.Value)); Person_Details.tbl_PersonDetail objtype = Person_Details.Licensing_Details.get_PersonsData(Convert.ToInt32(hfdperid.Value)); hfdobjtype.Value = objtype.object_type.ToString(); //if(hfdobjtype.Value=="1") //mailorder.Attributes.Add("style","display:none"); Utilities_Licensing.BindDropdown(ddlnewstatus, 14); txtDateOfChange.Text = DateTime.Now.ToShortDateString(); txtappdt.Text = DateTime.Now.ToShortDateString(); Utilities_Licensing.BindStatusChange(ddlReason); ddlcmp.DataSource = ComplaintsTabLinq.ClsComplaints.GetComplaints("0", Convert.ToInt32(hfdperid.Value)); ddlcmp.DataTextField = "Complaint_Number"; ddlcmp.DataValueField = "Complaint_Number"; ddlcmp.DataBind(); ddlcmp.Items.Insert(0, new ListItem("", "")); //BindLicenseData(); Utilities_Licensing.BindLicenseTypeByPersonID(chklictypes, Convert.ToInt32(hfdperid.Value)); foreach (ListItem li in chklictypes.Items) { li.Attributes.Add("App_ID", li.Value); } } }