By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,456 Members | 1,742 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,456 IT Pros & Developers. It's quick & easy.

Sample ASP.Net on web site

P: n/a
I am trying to run through a tutorial on this page:
http://www.asp.net/learn/data-access...ial-01-vb.aspx

I have created the SuppliersRow class with the method GetProducts() and also
created the SuppliersAndProduct.aspx page as well as the onLoad event
handler. When I hover over the top part of the source for the page that
reads:

<%@ Page Language="VB" CodeFile="SuppliersAndProducts.aspx.vb"
AutoEventWireup="true" Inherits="SuppliersAndProducts" %>

I get the squiggly underline and the intelisense says that Type
'Northwind.SuppliersRow' is not defined.

When I look in the class viewer SuppliersRow is listed and GetProducts does
show up as a method.

Thanks
Oct 16 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

Please check have you installed "SQL Express" at time of installation.
Because
1. your MDF file is in App_Code directory
2. your web.config should conain
"AttachDbFilename=|DataDirectory|\NORTHWND.MDF ;". so SQL Express (not SQL
Server) is required. else change connection string and store your data in SQL
Server

"Rockn" wrote:
I am trying to run through a tutorial on this page:
http://www.asp.net/learn/data-access...ial-01-vb.aspx

I have created the SuppliersRow class with the method GetProducts() and also
created the SuppliersAndProduct.aspx page as well as the onLoad event
handler. When I hover over the top part of the source for the page that
reads:

<%@ Page Language="VB" CodeFile="SuppliersAndProducts.aspx.vb"
AutoEventWireup="true" Inherits="SuppliersAndProducts" %>

I get the squiggly underline and the intelisense says that Type
'Northwind.SuppliersRow' is not defined.

When I look in the class viewer SuppliersRow is listed and GetProducts does
show up as a method.

Thanks
Oct 16 '07 #2

P: n/a
I am using a SQL server version of the Northwind database. This is not a
database connectivity problem, I can access and manipulate data just fine.

"Ujval Shah" <Uj*******@discussions.microsoft.comwrote in message
news:B5**********************************@microsof t.com...
Hi,

Please check have you installed "SQL Express" at time of installation.
Because
1. your MDF file is in App_Code directory
2. your web.config should conain
"AttachDbFilename=|DataDirectory|\NORTHWND.MDF ;". so SQL Express (not SQL
Server) is required. else change connection string and store your data in
SQL
Server

"Rockn" wrote:
>I am trying to run through a tutorial on this page:
http://www.asp.net/learn/data-access...ial-01-vb.aspx

I have created the SuppliersRow class with the method GetProducts() and
also
created the SuppliersAndProduct.aspx page as well as the onLoad event
handler. When I hover over the top part of the source for the page that
reads:

<%@ Page Language="VB" CodeFile="SuppliersAndProducts.aspx.vb"
AutoEventWireup="true" Inherits="SuppliersAndProducts" %>

I get the squiggly underline and the intelisense says that Type
'Northwind.SuppliersRow' is not defined.

When I look in the class viewer SuppliersRow is listed and GetProducts
does
show up as a method.

Thanks

Oct 16 '07 #3

P: n/a
Figured it out. The root namespace is not coming into the application so I
had to add the namespace to the projectname.datatable.suppliersrow

"Rockn" <Ro***@newsgroups.nospamwrote in message
news:u4**************@TK2MSFTNGP02.phx.gbl...
>I am using a SQL server version of the Northwind database. This is not a
database connectivity problem, I can access and manipulate data just fine.

"Ujval Shah" <Uj*******@discussions.microsoft.comwrote in message
news:B5**********************************@microsof t.com...
>Hi,

Please check have you installed "SQL Express" at time of installation.
Because
1. your MDF file is in App_Code directory
2. your web.config should conain
"AttachDbFilename=|DataDirectory|\NORTHWND.MDF; ". so SQL Express (not SQL
Server) is required. else change connection string and store your data in
SQL
Server

"Rockn" wrote:
>>I am trying to run through a tutorial on this page:
http://www.asp.net/learn/data-access...ial-01-vb.aspx

I have created the SuppliersRow class with the method GetProducts() and
also
created the SuppliersAndProduct.aspx page as well as the onLoad event
handler. When I hover over the top part of the source for the page that
reads:

<%@ Page Language="VB" CodeFile="SuppliersAndProducts.aspx.vb"
AutoEventWireup="true" Inherits="SuppliersAndProducts" %>

I get the squiggly underline and the intelisense says that Type
'Northwind.SuppliersRow' is not defined.

When I look in the class viewer SuppliersRow is listed and GetProducts
does
show up as a method.

Thanks


Oct 16 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.