Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 4th, 2004, 11:29 PM
Authorized User
 
Join Date: May 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default newbie stuipd question about code behind

I'm just start to learn the .net
I brought the book Professional ASP.Net 1.1 and tried to install the code dl from this web site. However, it gots errors in setting up. So, I try to create a solution from vs 2003 and add the existing items from the dl code folders.
once completed, i tried to open the files and most of the page are including the following codes in the beginning of file.

<%@ Page Language="VB" Inherits="IBuyAdventure.PageBase" src="components/stdpage.vb" %>
<%@ Register TagPrefix="IBA" TagName="Header" Src="UserControl\Header.ascx" %>
<%@ Register TagPrefix="IBA" TagName="Categories" Src="UserControl\Categories.ascx" %>
<%@ Register TagPrefix="IBA" TagName="Special" Src="UserControl\Special.ascx" %>
<%@ Register TagPrefix="IBA" TagName="Footer" Src="UserControl\Footer.ascx" %>
<%@ OutputCache Duration="60" VaryByParam="*" %>

the vs2003 stated that it got errors in displaying the page correctly. I search the web and it seems that the codebehind method is different from that used in vs2003. So, how can i fixed this?

Besides, when i run the program, it display errors as
*********************
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'IBuyAdventure.CartDB' is not defined.

Source Error:



Line 25:
Line 26: If Context.User.Identity.Name <> "" Then
Line 27: Dim cart As New IBuyAdventure.CartDB(ConfigurationSettings.AppSett ings("connectionString"))
Line 28: cart.ResetShoppingCart(GetCustomerID())
Line 29: FormsAuthentication.SignOut()

**************
any tips on this as well?




 
Old May 5th, 2004, 08:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Did you name the projects the same when you recreated the solution? If not, that could cause problems. Otherwise, for that type of error, typically the file got left out somehow. Double-check that the CartDB class exists, and if not, the code is missing from the zip or executable.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie question peterh Classic ASP Databases 3 January 17th, 2008 12:25 PM
Newbie question savoym JSP Basics 1 August 16th, 2006 03:15 AM
Newbie Question - Sorry! KP Crystal Reports 1 June 13th, 2006 02:45 AM
Newbie question Beginner VB.NET 2002/2003 Basics 2 November 9th, 2003 07:58 AM
Newbie question maccer88 Access 1 October 18th, 2003 05:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.