using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using nmsSetup; public partial class Default2 : System.Web.UI.Page { clsBLSetup b; PRPSetup obj; protected void Page_Load(object sender, EventArgs e) { bind_latest_update(); bind_Detail(); } public void bind_Detail() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); if (Request.QueryString["cid"] != null) { obj.catID = Request.QueryString["cid"].ToString(); obj.id = Request.QueryString["id"].ToString(); } lst = b.view_TextDetail(obj); string str = ""; if (lst.Count > 0) { foreach (PRPSetup p in lst) { // get_title.InnerText = p.title; //detailcourse.InnerText = p.description; } } { reptDetais.DataSource = lst; reptDetais.DataBind(); } } public void bind_latest_update() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); obj.catID = "13"; lst = b.view_TextDetail(obj); if (lst.Count > 0) { //reptlatestupdate.DataSource = lst; //reptlatestupdate.DataBind(); } } }