473,396 Members | 2,093 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,396 software developers and data experts.

how to create stand-alone page in VS

Let's say that for whatever reason I want to write a simple ASPX page with
no code-behind; all the code will be in the SCRIPT tag. I don't want to
write out the code for the server controls in notepad, but I also don't want
to create a whole web app project in Visual Studio. Is it possible to
create a single ASPX page in Visual Studio, that is not part of a project,
and take advantage of VS drag & drop designer?

Nov 17 '05 #1
3 1685
Unfortuantely this is one of the drawbacks of the current VS.NET. You can
only follow its code-behind model.
Try ASP.NET Web Matrix though, its probably more what your looking for.

"Tom Hartnett truemfg.com>" <THartnett <AT> wrote in message
news:OH**************@TK2MSFTNGP11.phx.gbl...
Let's say that for whatever reason I want to write a simple ASPX page with
no code-behind; all the code will be in the SCRIPT tag. I don't want to
write out the code for the server controls in notepad, but I also don't want to create a whole web app project in Visual Studio. Is it possible to
create a single ASPX page in Visual Studio, that is not part of a project,
and take advantage of VS drag & drop designer?

Nov 17 '05 #2
If you're stuck on VS.Net - you'll need to wait until v2.0 for that
non-project type development (or use another editor for that stuff).

David Wier
MCP, MVP ASP.NET, ASPInsider
http://aspnet101.com
http://aspexpress.com
"Tom Hartnett truemfg.com>" <THartnett <AT> wrote in message
news:OH**************@TK2MSFTNGP11.phx.gbl...
Let's say that for whatever reason I want to write a simple ASPX page with
no code-behind; all the code will be in the SCRIPT tag. I don't want to
write out the code for the server controls in notepad, but I also don't want to create a whole web app project in Visual Studio. Is it possible to
create a single ASPX page in Visual Studio, that is not part of a project,
and take advantage of VS drag & drop designer?

Nov 17 '05 #3
You can take the codebehind and inherits parameters off
of the @Page directive. You will then also need to show
all files and remove the code behind page.

Your @page directive will look similar to this...

<%@ Page language="c#" AutoEventWireup="false" %>

put your code where you want in the page, compile and run.

It works in this version and 1.0 also.

Good Luck,

Keith
-----Original Message-----
Let's say that for whatever reason I want to write a simple ASPX page withno code-behind; all the code will be in the SCRIPT tag. I don't want towrite out the code for the server controls in notepad, but I also don't wantto create a whole web app project in Visual Studio. Is it possible tocreate a single ASPX page in Visual Studio, that is not part of a project,and take advantage of VS drag & drop designer?

.

Nov 17 '05 #4

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

Similar topics

2
by: AstrA | last post by:
Hi All My forms are gonig to have a dark to green background and I want my labels to stand out. I'm gonig to use white for the colour of the actual labels, but you see a lot of the...
0
by: G. Brannon Smith | last post by:
I've been hitting the DB books lately and I was wondering if anyone knows where features like "CREATE ASSERTION" and sub-selects in CHECK constraints stand in the TODO queue for production PgSQL....
0
by: LaidBackWebSage | last post by:
Hi, All! I've got a very large table (149 fields -- I know, I didn't create it, and I'm working on changing it...) and I need to add an index to speed up a join query. However, when I run the...
0
by: Peter Sands | last post by:
Hi, I have setup a stand-by db2 DB server, I want to test the log shipping method. Do I just issue a 'list history..' on the source server to get the logs I need to ship. Then copy those logs...
1
by: Jim | last post by:
Hi all, is there a way for me to create an alias on my home PC for a network path at the company work for? I have a database (front end and back end) where the tables in the back end are linked...
6
by: Robert Smith | last post by:
I am programming C in linux and i just need a quick and dirty way to make some text stand out. I would like to change the color maybe to red. I want to print out something like printf("Blah:...
1
by: Rob Meade | last post by:
Hi all, I have installed VS2005 in an attempt to start writing some nice new .net 2.0 pages....alas... Running on a laptop - XP Pro - I have Frontpage Server Extensions Installed, O/S is all...
6
by: Eduardo78 | last post by:
If someone could help me doing a code in VB to do the following: The output should be a list of all posible ways in which (m) different Males and (f) different female could be line up if no two...
3
by: Eric | last post by:
I'm looking for some best practices when it comes time to allowing a user to create an account for our web app. For example, a potential customer of ours would fill out an application and then...
4
by: kelly86 | last post by:
hi guys im stuck here...actually i was asked 2 use C language to create a hex reader/compiler/editor, for use in test department for modifying *.bin files. Well as a new trainee in this company i...
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
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.