protected void ddlNames_SelectedIndexChanged(object sender, EventArgs e) { if (!IsPostBack) { con = new SqlConnection("Data Source=KADSERVER;Initial Catalog=Kadsyscon_temp;User ID=sa;Password=syscon1234"); con.Open(); //DataSet ds = new DataSet(); dtLogin = new DataTable(); string str1 = "select Date,InTime ,OutTime from EmpAttendanceDetails WHERE EID=" + ddlNames.SelectedValue.ToString(); Command = new SqlCommand(str1, con); Command.CommandType = CommandType.Text; SqlDataAdapter da = new SqlDataAdapter(Command); da.Fill(dtLogin); gvDetails.DataSource = dtLogin; gvDetails.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)