473,387 Members | 1,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Sample ASP.Net on web site

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
3 1329
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alex Maghen | last post by:
I'm looking for a sample ASP.NET enterprise web solution. There are many issues and questions I have about how a large web site is constructed with multiple developers. How global settings and...
0
by: Jean Stax | last post by:
Hi! I just read in "Writing Secure Code" book a chapter about Cross-Site Scripting. Here the relevant paragraph: This is bad because a malicious user could access another's important data,...
3
by: paolo | last post by:
Hi, any one know where I can get a sample or some info on how to write a telnet program ?? Thanks, Paolo
1
by: Eliezer Figueroa | last post by:
Full Database System Sample? I want to know if there any good windows forms based database sample application that can be downloaded.I searched the MS site but most of the database samples are...
3
by: Arjen | last post by:
Hello, I need a very simple login management system. I can create it by myself... but if somebody has done this before... it can saves me a lot of time. What I want is this: - Form...
4
by: Joey | last post by:
Does anyone know how to center this sample webpage in Firefox? If so, will you provide the example as it applies to this sample webpage? I have read numerous posts and articles on how to center...
1
by: Andrzej J. Turowicz | last post by:
I create new WebSite named UseWebPart ( sample from Ms Press Book) next steps: Add WebPartManagerIO , WebPartZone, EditorZone & CatalogZone, etc etc etc if i am running this sample under...
1
by: Riyadh Hossain | last post by:
I am developing USPS shipping API for my site. All the work is going on testing phase. My site uses PHP/MySQL. Now I am working on USPS tracking/confirm. I can send request and get responses from...
0
by: Mike Cain | last post by:
Hi all! I'm looking to offer a software product using the SaaS model. This of course will require that I build a web site where customers can sign up, log in, manage their membership and billing...
9
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
Where can I get a sample login page with all functionalities (such as checking the password in the database, create cookies, check security and so forth). Code in C# would be fine. It it is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.