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_aboutus(); bind_about_list(); bind_pageimg(); } public void bind_pageimg() { 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; } } { reptpageimg.DataSource = lst; reptpageimg.DataBind(); } } public void bind_aboutus() { 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; } } { reptstudent.DataSource = lst; reptstudent.DataBind(); } } public void bind_about_list() { obj = new PRPSetup(); b = new clsBLSetup(); List lst1 = new List(); obj.catID = "14"; lst1 = b.view_TextDetail(obj); if (lst1.Count > 0) { About_menu.DataSource = lst1; About_menu.DataBind(); } } }