Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions