Vindhya Yadaav

Vindhya Yadaav

  • NA
  • 36
  • 11k

Search Record Display in DetailsView1

Nov 9 2015 6:11 AM

 
SqlDataAdapter sda = new SqlDataAdapter("select * from student_login", con);
DataTable dt = new DataTable();
sda.Fill(dt);
int c = dt.Rows.Count;


if (dt.Rows[0][4].ToString() == TextBox1.Text)
{
DataTable dt = new DataTable();
sda.Fill(dt);
DetailsView1.DataSource = dt;
DetailsView1.DataBind();
}
 
when recrod found its show
only 1St record show of the Table.
please help to show column 2 and 3 4 .....ext...
and how to use ISPOSTBACK option.... of this page...
 
 

Answers (1)