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 _Default : System.Web.UI.Page { clsBLSetup b; PRPSetup obj; protected void Page_Load(object sender, EventArgs e) { // me_counter.InnerText = Application["Count"].ToString(); bind_eventing(); bind_slider (); // bind_data(); bind_coursecategory(); bind_foudermember(); bind_news(); bind_Video(); bind_latest_update(); bind_Tranining(); } public void bind_eventing() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); obj.catID = "16"; lst = b.view_TextDetail(obj); if (lst.Count > 0) { // ReptEvent.DataSource = lst; // ReptEvent.DataBind(); } } public void bind_Video() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); obj.catID = "9038"; lst = b.view_TextDetail(obj); if (lst.Count > 0) { reptvideo.DataSource = lst; reptvideo.DataBind(); } } //----------total Students--------------// public void bind_Tranining() { b = new clsBLSetup(); System.Data.DataTable dt = new System.Data.DataTable(); dt = b.View_HomeStudentDetail(); get_training_center.InnerText = dt.Rows[4][2].ToString(); get_enrollment.InnerText = dt.Rows[0][2].ToString(); get_certificate.InnerText = dt.Rows[2][2].ToString(); get_placed.InnerText = dt.Rows[3][2].ToString(); get_studentrained.InnerText = dt.Rows[1][2].ToString(); } public void bind_slider() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); obj.catID = "3"; lst = b.view_TextDetail(obj); if (lst.Count > 0) { reptslider.DataSource = lst; reptslider.DataBind(); } } public void bind_news() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); obj.catID = "4"; lst = b.view_TextDetail(obj); if (lst.Count > 0) { reptNews.DataSource = lst; reptNews.DataBind(); } } public void bind_foudermember() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); obj.catID = "5"; lst = b.view_TextDetail(obj); if (lst.Count > 0) { Reptfoundermember.DataSource = lst; Reptfoundermember.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(); } } //public void bind_Industry() //{ // obj = new PRPSetup(); // b = new clsBLSetup(); // string str = "10"; // List lst = new List(); // lst = b.Bind_HighlightCourses(obj); // str += ""; // if (lst.Count > 0) // { // // head_title.InnerText = description; // //Repthighlightcourse.DataSource = lst; // //Repthighlightcourse.DataBind(); // } //} public List bindcourse(string a) { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); obj.id = a; lst = b.View_CourseName_Catid(obj); return lst; } public void bind_coursecategory() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); obj.id = "5052"; lst = b.View_CourseName_TypeWise(obj); string str = ""; foreach (PRPSetup p in lst) { if (p.catID == "7208") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } else if (p.catID == "8212") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } else if (p.catID == "8213") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } else if (p.catID == "8214") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } else if (p.catID == "8215") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } else if (p.catID == "8216") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } else if (p.catID == "8217") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } else if (p.catID == "8218") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } else if (p.catID == "8219") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } else if (p.catID == "8220") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } else if (p.catID == "8221") { str += "
"; str += "
"; str += "
"; str += ""; str += "
"; str += "
"; str += "
" + p.title + "
"; str += "
"; str += "
"; str += "
"; str += "
" + p.urlName + "
"; str += "
"; str += "
"; str += "
"; str += " Read More"; str += "
"; str += "
"; str += "
"; } //else //{ // str += "
"; // str += "
"; // str += "
"; // str += ""; // str += "
"; // str += "
"; // str += "
" + p.title + "
"; // str += "
"; // str += "
"; // str += "
"; // str += "
" + p.urlName + "
"; // str += "
"; // str += "
"; // str += "
"; // str += " Read More"; // str += "
"; // str += "
"; // str += "
"; //} } get_course.InnerHtml = str; // ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "Confirm", "", true); //ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "script", "Confirm();", true); //Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "myfucntions()", true); } }