Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: ASP.net 2.0 question.  (Read 5109 times)

0 Members and 1 Guest are viewing this topic.

SmokeBeast

  • Guest
ASP.net 2.0 question.
« on: March 27, 2006, 04:56:35 PM »
Hi all,
I am running Windows XP SP2 with IIS and .NET framework 2.0 installed.  In the Default Website I have designated index.aspx as a valid document.  
When I go to http://localhost in my web browser I get a blank page.  Not a "Page Cannot Be Found" error, just a page with a white background and nothing more.
In my index.aspx page I am trying to attach to and view information in a ACCESS database.  The code is VERY simple right now (until I can get it working correctly) Here is the code....

<html>
<head>
<title>ASPX Test</title>
</head>
<body>
<form runat="server">
<asp:SqlDataSource id="ProductsSource" Runat="Server"
  ProviderName="System.Data.OleDb"
  ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\Databases\eCommerce\eCommerce.mdb"
  SelectCommand="SELECT ItemNumber, ItemName, ItemPrice, ItemQuantity FROM Products"/>

<asp:GridView DataSourceID="ProductsSource" Runat="Server"/>
</form>
</body>
</html>

The path in the DataSource is relative to my local machine.  I know that the database contains data.

Any help would be greatly appreciated.
« Last Edit: March 27, 2006, 05:14:34 PM by SmokeBeast »

SmokeBeast

  • Guest
Re: ASP.net 2.0 question.
« Reply #1 on: March 27, 2006, 07:32:26 PM »
Bump.

Anyone have a suggestion???

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: ASP.net 2.0 question.
« Reply #2 on: March 28, 2006, 09:29:18 AM »
I checked one of my projects and noticed two things,

1. there doesn't appear to be a </asp:AccessDataSource> clause
2. should you not be using AccessDataSource with Access; not SqlDataSource

Just some thoughts.  :D

The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein