Showing posts with label controls. Show all posts
Showing posts with label controls. Show all posts

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;

5 March 2014

Which ASP.NET Server controls have Auto Postback set to TRUE by default in asp.net

All except, Buttons, Hyperlinks and LinkButtons have a default Auto Post Back property of false in the stock ASP.NET control library.