TechEthical CEHP
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Directory;
using System.Data;
using System.Data.SqlClient;
namespace Bathuasoft
{
public partial class Students : System.Web.UI.MasterPage
{
public DataTable dtMenu = new DataTable();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
connection_sql obj = new connection_sql();
obj.MakeConnection();
dtMenu = obj.getDataTable("Select * from tbl_FreeRegistration "
+ " Where mobile1='" + Session["LoginStudent"].ToString().Replace("--", "").Replace("'", "").ToString() + "'"
+ " and blacklist = 'No' and status = 'Active'");
Session["Course1"] = dtMenu.Rows[0]["Course1"].ToString() + "";
Session["Course2"] = dtMenu.Rows[0]["Course2"].ToString() + "";
Session["Batch"] = dtMenu.Rows[0]["Batch"].ToString() + "";
obj.CloseConnection();
}
}
}
}
TechEthical Mini WebShell Version 1.0, Coded By The_M@T3