protected void ddlAction_SelectedIndexChanged(object sender, EventArgs e) { try { RadComboBox ddlAction = (RadComboBox)sender; GridDataItem gvr = (GridDataItem)ddlAction.NamingContainer; int selectedRow = gvr.ItemIndex + 1; EQCebId = int.Parse(gvEQAccRate.MasterTableView.DataKeyValues[selectedRow - 1]["CebId"].ToString()); Session["CebId"] = EQCebId; Session["EQAccountVoRow"] = customeraccountBo.GetEquityRate(EQCebId); if (ddlAction.SelectedValue.ToString() == "Edit") { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "leftpane", "loadcontrol('CustomerEQAccountRateAdd','action=Edit');", true); } if (ddlAction.SelectedValue.ToString() == "View") { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "leftpane", "loadcontrol('CustomerEQAccountRateAdd','action=View');", true); } if (ddlAction.SelectedValue.ToString() == "Delete") { Page.ClientScript.RegisterStartupScript(this.GetType(), "Message", "ShowAlertToDelete();", true); } } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "CustomerMFFolioView.ascx:ddlAction_OnSelectedIndexChange()"); object[] objects = new object[1]; objects[0] = FolioId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }