Question: create an ASP.NET page that uses a GridView to display the books from the Books table and a RadioButtonList of all the authors to allow

create an ASP.NET page that uses a GridView to display the books from the Books table and a RadioButtonList of all the authors to allow the user to filter the books displayed. Make sure that the RadioButtonList displays only unique author names. In addition, because on the initial page load, the RadioButtonList will not have any item selected, you will need to set a default value for the parameter you create in the GridView's SqlDataSource Wizard. Set the default parameter value to a blank string. With this setting, when the page first loads, before a user selects an author from the list of radio buttons, the GridView should not be shown because there should be no authors with a blank string. Upon selecting a new author, the page will post back and the books that the selected author has written will be displayed. When testing this, be sure to edit the Books table so that there are at least two books written by the same author. Also, take a moment to set the GridView's EmptyDataText property to an applicable message. Recall that the value of this property is displayed when binding a GridView to a data source control that returns no records, as is the case with this exercise when the user first visits the page, before selecting an author.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!