protected void getSeverityData()
        {
            List<severity> lstSeverity = new List<severity>();
            severityBus oSeverity = new severityBus();

            lstSeverity = oSeverity.severityGetAll();

            if (lstSeverity.Count > 0)
            {
                ddlSeverity.DataSource = lstSeverity;
                ddlSeverity.DataValueField = "severityId";
                ddlSeverity.DataTextField = "severityDescription";
                ddlSeverity.DataBind();
            }
        }
Ejemplo n.º 2
0
        protected void gvGetData()
        {
            List<severity> lstSeverities = new List<severity>();
            severityBus oSeverities = new severityBus();

            lstSeverities = oSeverities.severityGetAll();

            if (lstSeverities.Count > 0)
            {
                gvSeverities.DataSource = lstSeverities;
                gvSeverities.DataBind();
            }
        }