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 Default4 : System.Web.UI.Page { clsBLSetup b; PRPSetup obj; protected void Page_Load(object sender, EventArgs e) { bind_links(); bind_overview(); bind_new_desgin_course(); //bind_TitleValue(); } public void bind_links() { obj = new PRPSetup(); b = new clsBLSetup(); 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); string str = ""; if (lst.Count > 0) { foreach (PRPSetup p in lst) { // get_title.InnerText = p.title; // detailcourse.InnerText = p.description; } // Replist.DataSource = lst; // Replist.DataBind(); } } public void bind_overview() { obj = new PRPSetup(); b = new clsBLSetup(); 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); string str = ""; if (lst.Count > 0) { // reptoverview.DataSource = lst; // reptoverview.DataBind(); } } 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 Duration : " + 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; } //public void bind_TitleValue() //{ // obj = new PRPSetup(); // b = new clsBLSetup(); // string str = "", str1 = "", feecourse = ""; // List lst = new List(); // if (Page.RouteData.Values["id"].ToString() != null) // { // obj.id = Page.RouteData.Values["id"].ToString(); // lst = b.View_CourseNameTitleShort(obj); // str = "
"; // str1 = ""; // foreach (PRPSetup p in lst) // { // // head_title.InnerText = p.title; // str += "

" + p.title + "

"; // str += "

" + p.description + "

"; // str1 += " " + p.durationMaxTime + " "; // feecourse += " " + p.coursefeetitle + " "; // } // str += "
"; // } // //get_titlevalue.InnerHtml = str; // // duration.InnerHtml = str1; // // coursefee.InnerHtml = feecourse; //} }