Which is the recommended way to fill all controls on a Web Form when user selects a record?
问题 I have a GridView control which shows a list of all employees. When user selects any employee from this list, the record is shown on a Web Form with all input controls pre-filled with the values. I want to know any good approach to do this. Should I bind all input controls to any SqlDataSource or should I re-populate all input controls by picking values from the DataSet. 回答1: First you add the select button on your GridView as: <asp:ButtonField Text="Select" CommandName="ViewMe" ButtonType=