private DataTable SelectddlDataTable(string proceduer, string param) { DataTable ddlTable = new DataTable(); try { Rep_General accountCrdtDdlsDetails = new Rep_General(); DataTable User = (DataTable)Session["user"]; string userId = User.Rows[0]["UserID"].ToString(); ddlTable = accountCrdtDdlsDetails.SelectddlDataTable(int.Parse(userId), proceduer, param); } catch (Exception ex) { string Error = ex.Message; string AlertMSG = ""; AlertMSG += Error; this.ClientScript.RegisterStartupScript(this.GetType(), this.GetType().Name, string.Format("window.alert('{0}');", AlertMSG), true); return(ddlTable); } return(ddlTable); }