6 March 2014

how to access values of the controls present inside the detailsview control

string EmpName = ((TextBox)DetailsView1.FindControl("Emp_Name")).Text;

or u can use

 string s = DetailsView1.Rows[0].Cells[1].Text;

No comments:

Post a Comment