using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using nmsSetup; using System.Data; using System.IO; public partial class Default2 : System.Web.UI.Page { clsBLSetup b; PRPSetup obj; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { bind_data(); //bind_links(); bind_pageimg(); bind_links(); } } public void bind_pageimg() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); if (Page.RouteData.Values["uid"] != null && Page.RouteData.Values["catid"] != null) { obj.catID = Page.RouteData.Values["catid"].ToString(); obj.courseId = Page.RouteData.Values["uid"].ToString(); lst = b.view_coursedetail(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_links() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); if (Page.RouteData.Values["catid"] != null/* && Page.RouteData.Values["catid"] != null*/) { obj.catID = Page.RouteData.Values["catid"].ToString(); //obj.courseId = Page.RouteData.Values["uid"].ToString(); lst = b.view_coursedetail(obj); string str = ""; if (lst.Count > 0) { foreach (PRPSetup p in lst) { // get_title.InnerText = p.title; //detailcourse.InnerText = p.description; } } { reptlinks.DataSource = lst; reptlinks.DataBind(); } } } public void bind_data() { obj = new PRPSetup(); b = new clsBLSetup(); string str = ""; List lst = new List(); if(Page.RouteData.Values["uid"] != null && Page.RouteData.Values["catid"] != null) { obj.catID = Page.RouteData.Values["catid"].ToString(); obj.courseId = Page.RouteData.Values["uid"].ToString(); lst = b.view_coursedetail(obj); foreach (PRPSetup p in lst) { //head_title.InnerText = p.title; str += "
"; str += "

" + p.title + "

"; str += "
"; str += ""; str += "
"; str += "
"; str += ""; str += ""; // str += ""; //druction str += ""; //fee str += "
"; str += "
"; str += "

" + p.description + "

"; str += "
"; str += "
"; //str += " QP File"; //str += " Model Curriculum

"; str += " Apply Now"; str += "
"; str += "
"; } } else if (Page.RouteData.Values["uid"] != null && Page.RouteData.Values["tid"] != null) { obj.uniID = Page.RouteData.Values["uid"].ToString(); obj.catID = Page.RouteData.Values["tid"].ToString(); lst = b.view_fullcoursecategory_detail(obj); foreach (PRPSetup p in lst) { //head_title.InnerText = p.title; //str += "

" + p.title + "

"; str += "

" + p.textsubtitle + "

"; // str += "

" + p.title + "

"; // str += "
" + p.description + "

"; } } get_detail.InnerHtml = str; } // get_detail.InnerHtml = str; } //public void bind_new_desgin_course() //{ // obj = new PRPSetup(); // b = new clsBLSetup(); // string str = ""; // List lst = new List(); // if (Page.RouteData.Values["uid"] != null && Page.RouteData.Values["tid"] != null && Page.RouteData.Values["id"] != null) // { // obj.uniID = Page.RouteData.Values["uid"].ToString(); // obj.catID = Page.RouteData.Values["tid"].ToString(); // obj.courseId = Page.RouteData.Values["id"].ToString(); // lst = b.view_fullcoursedetail(obj); // foreach (PRPSetup p in lst) // { // //head_title.InnerText = p.title; // str += "
"; // str += "

" + p.title + "

"; // str += "
"; // str += ""; // str += "
"; // str += "
"; // str += "NSQF Level : 4"; // str += "Eligibility : 10th"; // // str += "Course Duraction : " + p.courseduraction + ""; //druction // str += "Course Fee : " + p.coursefee + ""; //fee // str += "
"; // str += "
"; // str += "

" + p.description + "

"; // str += "
"; // str += "
"; // str += " QP File"; // str += " Model Curriculum

"; // str += " Apply Now"; // str += "
"; // str += "
"; // } // } // else if (Page.RouteData.Values["uid"] != null && Page.RouteData.Values["tid"] != null) // { // obj.uniID = Page.RouteData.Values["uid"].ToString(); // obj.catID = Page.RouteData.Values["tid"].ToString(); // lst = b.view_fullcoursecategory_detail(obj); // foreach (PRPSetup p in lst) // { // //head_title.InnerText = p.title; // //str += "

" + p.title + "

"; // str += "

" + p.textsubtitle + "

"; // // str += "

" + p.title + "

"; // // str += "
" + p.description + "

"; // } // } // get_detail.InnerHtml = str; //}