Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
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)
            {
         
               

            }
    }
[Edit]Code block added[/Edit]
Posted
Updated 9-Mar-13 4:10am
v2
Comments
[no name] 9-Mar-13 10:07am    
And? Are you missing an assembly reference? Does "view" exist in "BL".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900