using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; using System.Configuration; using BL; public partial class viewinstructor : System.Web.UI.Page { BL.view objquery = new BL.view(ConfigurationManager.ConnectionStrings["reetu"].ToString()); static DataTable dt = new DataTable(); DataRow dr; SqlDataReader reader; protected void Page_Load(object sender, EventArgs e) { Label1.Text = Session["Email"].ToString(); dt = objquery.getinstructor1(Label1.Text); if (dt.Rows.Count > 0) { txtname.Text = dt.Rows[0]["Name"].ToString(); txtusername.Text = dt.Rows[1]["UserName"].ToString(); txtpassword.Text = dt.Rows[2]["Password"].ToString(); txtaddress.Text = dt.Rows[3]["Address"].ToString(); txtqualification.Text = dt.Rows[4]["Qualification"].ToString(); radiolistgender.SelectedItem.Text = dt.Rows[5]["Gender"].ToString(); txtcity.Text = dt.Rows[6]["City"].ToString(); txtstate.Text = dt.Rows[7]["State"].ToString(); txtzip.Text = dt.Rows[8]["Zip"].ToString(); txtdepartment.Text = dt.Rows[9]["Departmant"].ToString(); txtcontact.Text = dt.Rows[10]["Contact"].ToString(); txtcreatedate.Text = dt.Rows[11]["CreatedDate"].ToString(); //enableAll(); } //else //{ //disableAll(); //} //objquery.updateinstructor(txtname.Text, txtusername.Text, txtpassword.Text, txtaddress.Text, txtqualification.Text, radiolistgender.SelectedItem.Text, txtcity.Text, txtstate.Text, txtzip.Text, txtdepartment.Text, txtcontact.Text, txtcreatedate.Text); //SqlConnection con = new SqlConnection(constr); //con.Open(); } protected void btnsubmit_Click(object sender, EventArgs e) { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)