• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

17. .NET > 17.3. Retrieve Access Data from an ASP.NET Application

17.3. Retrieve Access Data from an ASP.NET Application

Problem

Your ASP.NET web site needs to access data from one of your Access databases. How do you retrieve Access data using ADO.NET?

Solution

Follow these steps to create an ASP.NET page, AltRock.aspx, which displays a list of alternative rock albums from the 17-03.MDB database using a DataGrid control:

  1. Start Visual Studio .NET.

  2. Create a new Visual Basic .NET ASP.NET Web Application project.

  3. Under location, enter “http://localhost/Music” and click OK.

  4. Delete the initial WebForm1.aspx file from the project.

  5. Select Project Add Web Form... to add a new web form page to the project named AltRock.aspx.

  6. With the Web Forms toolbox tab visible, drag a DataGrid control to the page.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint