473,503 Members | 1,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create page name 'on the fly' & Use of Period / Stop / . in url

Hi

Can the following 2 things be done in asp.net? I do not need a lot of
guidance on how to implement - just can it be done and any anticipated
problems.

1. GENERATE PAGE ON THE FLY
I am aware that ASP generates pages on the fly, but I believe it is
normally the page content which it generates on the fly - I want the
page name genetated 'on the fly' as well as the content.
eg I have a thousand members in my database but I do not want to have
1000 individual web pages on my server. Jane Smith should be able to
give her friends the following url www.mysystem.com/janesmith.aspx -
the page will only be generated when users request it. When the page is

generated it will also add individual content relating to Jane Smith.
Am I correct that this is a reasonaby straightforward procedure in
ASP.net?
USE OF PERIOD IN PAGE NAME - other than before extension
I would like Jane Smith to be able to set up her user name on my system

as jane.smith rather than janesmith. Assuming my 'on the fly' page
generation above is possible I would like her page name to be
jane.smith.aspx (ie with a period in the page name).
Will she be able to give the following url to users,
www.mysystem.com/jane.smith.aspx - and will users be able to access it
(in other words - will the . in the page name cause any problems)?

Thanks in anticipation ColinK

Jan 3 '07 #1
4 1289
absolutely.

i setup a site in 1.1 that consists of a single .aspx page on the server
that serves up a few hundred different pages based on the requested url.
<ia****@gmail.comwrote in message
news:11*********************@s34g2000cwa.googlegro ups.com...
Hi

Can the following 2 things be done in asp.net? I do not need a lot of
guidance on how to implement - just can it be done and any anticipated
problems.

1. GENERATE PAGE ON THE FLY
I am aware that ASP generates pages on the fly, but I believe it is
normally the page content which it generates on the fly - I want the
page name genetated 'on the fly' as well as the content.
eg I have a thousand members in my database but I do not want to have
1000 individual web pages on my server. Jane Smith should be able to
give her friends the following url www.mysystem.com/janesmith.aspx -
the page will only be generated when users request it. When the page is

generated it will also add individual content relating to Jane Smith.
Am I correct that this is a reasonaby straightforward procedure in
ASP.net?
USE OF PERIOD IN PAGE NAME - other than before extension
I would like Jane Smith to be able to set up her user name on my system

as jane.smith rather than janesmith. Assuming my 'on the fly' page
generation above is possible I would like her page name to be
jane.smith.aspx (ie with a period in the page name).
Will she be able to give the following url to users,
www.mysystem.com/jane.smith.aspx - and will users be able to access it
(in other words - will the . in the page name cause any problems)?

Thanks in anticipation ColinK

Jan 3 '07 #2
Hi,

ia****@gmail.com wrote:
Hi

Can the following 2 things be done in asp.net? I do not need a lot of
guidance on how to implement - just can it be done and any anticipated
problems.

1. GENERATE PAGE ON THE FLY
I am aware that ASP generates pages on the fly, but I believe it is
normally the page content which it generates on the fly - I want the
page name genetated 'on the fly' as well as the content.
eg I have a thousand members in my database but I do not want to have
1000 individual web pages on my server. Jane Smith should be able to
give her friends the following url www.mysystem.com/janesmith.aspx -
the page will only be generated when users request it. When the page is

generated it will also add individual content relating to Jane Smith.
Am I correct that this is a reasonaby straightforward procedure in
ASP.net?
There is a nice URL rewriting strategy where you define an ASPX page in
IIS which is loaded whenever a page is not found (404 error code). This
page, when activated, can generate content or redirect to another
existing page. I think that this would be appropriate for your problem:
when a non-existing page is hit, the error page gets kicked, reads the
URL and generates appropriate content.

Make sure to read this though:
http://odetocode.com/Blogs/scott/arc...09/22/509.aspx
USE OF PERIOD IN PAGE NAME - other than before extension
I would like Jane Smith to be able to set up her user name on my system

as jane.smith rather than janesmith. Assuming my 'on the fly' page
generation above is possible I would like her page name to be
jane.smith.aspx (ie with a period in the page name).
Will she be able to give the following url to users,
www.mysystem.com/jane.smith.aspx - and will users be able to access it
(in other words - will the . in the page name cause any problems)?

Thanks in anticipation ColinK
Periods in a page's name are not illegal. In your case even less, since
that page doesn't actually exist on the server ;-)

HTH
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Jan 3 '07 #3
another simple way to accomplish this is via Application_BeginRequest &
Context.RewritePath which is called before a 404 is triggered.

Gerry


"Laurent Bugnion [MVP]" <ga*********@bluewin.chwrote in message
news:uG**************@TK2MSFTNGP04.phx.gbl...
Hi,

ia****@gmail.com wrote:
>Hi

Can the following 2 things be done in asp.net? I do not need a lot of
guidance on how to implement - just can it be done and any anticipated
problems.

1. GENERATE PAGE ON THE FLY
I am aware that ASP generates pages on the fly, but I believe it is
normally the page content which it generates on the fly - I want the
page name genetated 'on the fly' as well as the content.
eg I have a thousand members in my database but I do not want to have
1000 individual web pages on my server. Jane Smith should be able to
give her friends the following url www.mysystem.com/janesmith.aspx -
the page will only be generated when users request it. When the page is

generated it will also add individual content relating to Jane Smith.
Am I correct that this is a reasonaby straightforward procedure in
ASP.net?

There is a nice URL rewriting strategy where you define an ASPX page in
IIS which is loaded whenever a page is not found (404 error code). This
page, when activated, can generate content or redirect to another existing
page. I think that this would be appropriate for your problem: when a
non-existing page is hit, the error page gets kicked, reads the URL and
generates appropriate content.

Make sure to read this though:
http://odetocode.com/Blogs/scott/arc...09/22/509.aspx
>USE OF PERIOD IN PAGE NAME - other than before extension
I would like Jane Smith to be able to set up her user name on my system

as jane.smith rather than janesmith. Assuming my 'on the fly' page
generation above is possible I would like her page name to be
jane.smith.aspx (ie with a period in the page name).
Will she be able to give the following url to users,
www.mysystem.com/jane.smith.aspx - and will users be able to access it
(in other words - will the . in the page name cause any problems)?

Thanks in anticipation ColinK

Periods in a page's name are not illegal. In your case even less, since
that page doesn't actually exist on the server ;-)

HTH
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

Jan 3 '07 #4
Hi,

gerry wrote:
another simple way to accomplish this is via Application_BeginRequest &
Context.RewritePath which is called before a 404 is triggered.

Gerry
True, if the page called is ASP.NET (which is the case for the OP, so I
should have suggested that ;-)

Greetings,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Jan 3 '07 #5

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

Similar topics

1
1875
by: kj | last post by:
Is it possible to create a form on the fly, by creating the form and its elements, and adding them to the document somehow? Thanks! kj -- NOTE: In my address everything before the first...
4
15964
by: aaa | last post by:
Can someone show me a snippet that creates a very simple XML doc with either a root and chilc nodes or root child nodes, and attributes. I have looked all around and every example I try I get an...
3
1620
by: Janaka | last post by:
Hi All, I'm having a problem with Page Output caching on a page that contains a DataGrid. Basically the page pulls up some data for sales information from the DB. Some of this has to be...
3
417
by: Richard Skopal | last post by:
In .NET Windows forms I can create a metafile using this code: Graphics grph = aControl.CreateGraphics(); IntPtr ipHDC = grph.GetHdc(); Metafile mf = new Metafile(aImgFilePath, ipHDC,...
6
4841
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
7
2389
by: GaryDean | last post by:
In my old 1.1 apps the default was MS_POSITIONING="GridLayout" and Textboxes and labels and such always had POSITION: absolute; and I never had any distortion when the page was rendered. Life was...
13
42856
ADezii
by: ADezii | last post by:
Recently, there have been several questions and much confusion concerning the Topic of Hyperlinks. Specifically, Users wanted to know how to retrieve a File Name from a FileDialog Box, copy the Name...
2
4438
by: Tim_Mac | last post by:
hi, i'm trying to create a WAV file using c# that will contain a set of beep tones, which are only known at run time. It is a bit like morse code except that each tone will correspond to an...
1
1592
by: CodeJoker | last post by:
I am a beginner at programming no classes it's sel study with e-books but hey everyone gets stuck. . . I have a snippet of code that I need someone to revise and if possible advice on sorting out my...
0
7203
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
7282
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
7463
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...
0
5581
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,...
1
5017
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...
0
4678
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...
0
3168
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...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
738
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.