protected void Page_Load(object sender, EventArgs e) { clearMessages(); if (!IsPostBack) { SetInitialValues(); ParamID = Request.QueryString["param"]; if (ParamID != null) { btnUpdate.Text = "Update"; pnlApprovalUpdate.Visible = true; pnlAppMatrix.Visible = false; ddlApp.SelectedValue = userAdminObj.GetAllApplications(Convert.ToInt32(ParamID)).ToString(); ddlApp.Enabled = false; ddlRole.SelectedValue = userAdminObj.GetAllApplications(Convert.ToInt32(ParamID), GlobalConstant.AppOrRole).ToString(); ddlRole.Enabled = false; BindDdllistRole(Convert.ToInt32(ParamID), GlobalConstant.DefaultAppID); BindApplicationDropdown(); } else { BindgvMyRequest(); pnlApprovalUpdate.Visible = false; } } }
private void BindApplicationDropdown() { var report = userAdminObj.GetAllApplications(); ddlApplication.DataSource = report; ddlApplication.DataTextField = "AppName"; ddlApplication.DataValueField = "AppID"; ddlApplication.DataBind(); }