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; using System.Data.SqlClient; using System.Configuration; public partial class UserPanel_Default2 : System.Web.UI.Page { clsBLSetup b; PRPSetup obj; SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["cn"].ConnectionString); protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { if (Session["WebFSess"] != null) { bind_Why(); } } } public void bind_Why() { obj = new PRPSetup(); b = new clsBLSetup(); List lst = new List(); obj.catID =Request.QueryString["cid"].ToString(); obj.id = Request.QueryString["id"].ToString(); lst = b.view_TextDetail(obj); string str = ""; foreach (PRPSetup p in lst) { //str += "the Online Education portal"; str += "

" + p.title + "

"; str += "

" + p.description + "

"; //str += "
"; //str += "Know More "; //str += "
"; } get_why.InnerHtml = str; } }