473,805 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Beginning ASPX with Visual Studio.NET editor

Hello,

I'm trying to run a sample project that came with Stephen
Walther's book "ASP.NET Unleashed (1e)", Chapter 31 - "Creating
an Online Store."

I opened Visual Studio. Started a new project called
"aspnetstor e" in the webroot.

I copied all the files over (using Windows Explorer)

After refreshing the project view the files were shown in white
outline.

I used the "Include in project" for each of the files.

Unfortunately Visual Studio has inserted page directives in
nearly all files like this:

<%@ Page CodeBehind="Foo ter.aspx.vb" Language="vb"
AutoEventWireup ="false" Inherits="aspne tstore.Footer" %>

Some of these are include files so the net result is that I get
an error "There can be only one 'page' directive"

How do I start a Visual Studion project from existing code or
copy pages to an existing project?

Shall I just remove all these page directives to get it working?

Nov 18 '05 #1
1 1143
Yeah, I'd just remove them manually, include files aren't very VS.net friendly.

"Zenobia" <6.**********@s pamgourmet.com> wrote in message news:3h******** *************** *********@4ax.c om...
Hello,

I'm trying to run a sample project that came with Stephen
Walther's book "ASP.NET Unleashed (1e)", Chapter 31 - "Creating
an Online Store."

I opened Visual Studio. Started a new project called
"aspnetstor e" in the webroot.

I copied all the files over (using Windows Explorer)

After refreshing the project view the files were shown in white
outline.

I used the "Include in project" for each of the files.

Unfortunately Visual Studio has inserted page directives in
nearly all files like this:

<%@ Page CodeBehind="Foo ter.aspx.vb" Language="vb"
AutoEventWireup ="false" Inherits="aspne tstore.Footer" %>

Some of these are include files so the net result is that I get
an error "There can be only one 'page' directive"

How do I start a Visual Studion project from existing code or
copy pages to an existing project?

Shall I just remove all these page directives to get it working?

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1792
by: Richard Lionheart | last post by:
Hi All, I adapted some sample code from w3schools.com and tried to adapt it to .NET to test dynamic processing in a WebForm. The client page that got generated produced everything that was coded except for displaying the time at which it was generated. I tried everything I could think of to rewrite this and to debug this. Anyone out there in Cyberspace got any idea why the time doesn't get displayed. The .aspx code follows below
2
3736
by: mharness | last post by:
Hello, I've tried a number of examples showing how to read the properties of a user control from an aspx file where the code is on the html view of the form but I can't figure out how to read them from the aspx.vb. Can anyone tell me how to declare the user control in the aspx.vb file so that I can read the properties? I did add "Protected WithEvents UC1 As System.Web.UI.UserControl" to the component code behind form but that's the...
3
1395
by: =?Utf-8?B?SmVmZnJleQ==?= | last post by:
Just got the book, ASP.NET by Greg Buczek (Osborne). The first part of book listed many aspx codes, not created by VS 2003 or VS 2005. How can these aspx files be coded? NotePad or VB 6? The book did show the web pages with IE for these aspx files. If not VS 2003 or VS 2005, then it must be VS 6. I have an old VS 6, so I ran the aspx file of Chap 1, the IE browser showed only the background gif file. What's wrong? Can ASP.NET...
1
2214
by: Nathan Sokalski | last post by:
Visual Studio 2005 recently stopped generating the *.designer.vb files for my *.aspx and *.ascx files. I am using Service Pack 1, and do not believe I did anything differently than normal prior to this happening. Is there anything that could have caused this? Does anyone know of a way to fix it? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
4
3617
by: maria | last post by:
I only use C++ with Visual Studio 6.0 for string manipulations in thousands of HTML pages on my website. Many times, the output files of many of my C++ programs contain a spanish question mark (¿) as their first character. What creates it? How do we avoid it? Thanks! maria
3
2962
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, This is an issue that happens to me and everybody else I know and I've never found a way around it. In Visual Studio (currently using 2003 but the same has happened for me in 2005 and 2008 as well) If I put a breakpoint in a .js file, the debugger picks it up and breaks into it at that point.
2
4015
by: Nikolay Belyh | last post by:
1. Why does Visual Studio 2008 started ignoring //{NO_DEPENDENCIES} in resource.h? If I edit file "resource.h" _manually_, it rebuilds the whole solution. It worked just fine with Visual Studio 2005. 2. Why does Visual Studio 2008 not allow having two resource files (that use the same "resoure.h") open at the same time, when they are in different projects of the same solution (localization resource-only dll projects?) It worked just fine...
2
4628
by: Netwatcher | last post by:
Hello, i am new to c++ windows and DX programming, i encountered a code in the book stated in the title, which doesn't work for a reason, here is the code // Beginning Game Programming // Chapter 5 #edit: not 4, mistake in the title // d3d_windowed program //header files to include #include <d3d9.h> #include <time.h>
0
9718
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.