protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //Customer Code DataTable dt = objBSS.GetCustomerIdentification(); cmbCustomerCode.DataSource = dt; cmbCustomerCode.DataTextField = "Customer"; cmbCustomerCode.DataValueField = "CustomerCode"; cmbCustomerCode.DataBind(); cmbCustomerCode.Items.Insert(0, new RadComboBoxItem("Please Select", "0")); //Activity Type DataTable dtActType = objBSS.GetActivityType(); cmbActivityType.DataSource = dtActType; cmbActivityType.DataTextField = "ActivityName"; cmbActivityType.DataValueField = "ActivityTypeID"; cmbActivityType.DataBind(); cmbActivityType.Items.Insert(0, new RadComboBoxItem("Please Select", "0")); //Activity Status DataTable dtActivityStatus = objBSS.GetActivityStatus(); cmbActivityStatus.DataSource = dtActivityStatus; cmbActivityStatus.DataTextField = "ActivityStatus"; cmbActivityStatus.DataValueField = "ActivityStatusID"; cmbActivityStatus.DataBind(); cmbActivityStatus.Items.Insert(0, new RadComboBoxItem("Please Select", "0")); //Activity Status DataTable dtcloserRemarks = objBSS.GetCloserRemarks(); RadCloserRemarks.DataSource = dtcloserRemarks; RadCloserRemarks.DataTextField = "ClosureRemarks"; RadCloserRemarks.DataValueField = "CloserRID"; RadCloserRemarks.DataBind(); RadCloserRemarks.Items.Insert(0, new RadComboBoxItem("Please Select", "0")); //Grid view GetActivityData(); cmbActivityOwner.Text = Session["Name"].ToString(); } }