473,394 Members | 1,765 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,394 software developers and data experts.

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
"aspnetstore" 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="Footer.aspx.vb" Language="vb"
AutoEventWireup="false" Inherits="aspnetstore.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 1129
Yeah, I'd just remove them manually, include files aren't very VS.net friendly.

"Zenobia" <6.**********@spamgourmet.com> wrote in message news:3h********************************@4ax.com...
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
"aspnetstore" 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="Footer.aspx.vb" Language="vb"
AutoEventWireup="false" Inherits="aspnetstore.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
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...
2
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...
3
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...
1
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...
4
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 (¿)...
3
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...
2
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...
2
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...

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.