Reply to comment

A nice shortcut that isn't well


A nice shortcut that isn't well documented is that you can reference the control directly using the FindControl method with this syntax:


TextBox txtName = (TextBox)Page.Form.FindControl("DetailsView1:txtName");







Nice. Thanks!

Reply