asking for help how do I assign the values I've selected in the gridview to the label control. I try using the different tutorials in the internet but nothing happens.
here's my code:
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow row = GridView1.SelectedRow;
lblClinicName.Text = Convert.ToString(row.Cells[1].Text);
lblStreet.Text = row.Cells[2].Text;
lblCity.Text = row.Cells[2].Text;
lblTelNo.Text = row.Cells[2].Text;
lblClinicSched.Text = row.Cells[2].Text;
}
thanks to all.

New Topic/Question
Reply



MultiQuote





|