473,396 Members | 2,039 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.

Generate pages or responses on the fly

Hi,

We have a need to create pages on the fly for ASP.NET applications based on
some string that the Url ends with. For example:
http://www.domain.com/SomePath/aabbccdd.

"aabbccdd" does not exist physically on the file system, but we'd like that
to be handled somehow as an ID, make a call to some other system to retrieve
data (Web Service, database etc.), and then generate a response page.

One way I am aware of is to use an HttpModule to handle the request and
interpret it accordingly. Note that we do not want to use query strings to
address search engine optimization concerns.

I would appreciate it if you can share you experience or any ideas that you
have.

Thanks,

Adnan
May 2 '06 #1
2 1528
Hi,

What if you pass your aabbccdd in a hidden field then generate what ever you
want on the fly.
I don't understand what you mean, when you say you don't want to pass in a
query string somepage.aspx?id=aabbccdd can you please explain.
I am willing to learn from you.

Ihttphandlers can look process any filename with a specific extension you
want.
aabbccdd.Adnan
bbccddaa.Adnan
http://www.domain.com/SomePath/aabbccddd.Adnan

SA
"Adnan Al-Ghourabi" <alghourabi at yahoo.com> wrote in message
news:B0**********************************@microsof t.com...
Hi,

We have a need to create pages on the fly for ASP.NET applications based
on
some string that the Url ends with. For example:
http://www.domain.com/SomePath/aabbccdd.

"aabbccdd" does not exist physically on the file system, but we'd like
that
to be handled somehow as an ID, make a call to some other system to
retrieve
data (Web Service, database etc.), and then generate a response page.

One way I am aware of is to use an HttpModule to handle the request and
interpret it accordingly. Note that we do not want to use query strings to
address search engine optimization concerns.

I would appreciate it if you can share you experience or any ideas that
you
have.

Thanks,

Adnan

May 2 '06 #2
Hi SA

Thanks for your reply. The URL http://www.domain.com/SomePath/aabbccddd
could be found in a search engine so I cannot rely on the hidden field option.

Search engines tend to dislike pages with query strings; you can find them
in search results, but their ranking tends to be lower (one possible reason
is the engine would think the page's content is dependent on the ID, and
therefore it's dynamic and not static content).

In essense, we'd like http://www.domain.com/SomePath/aabbccddd to work the
same way as http://www.domain.com/SomePath/somep...t?id=aabbccddd.

We are using MCMS which has its own ISAPI filter that handles requests. So I
am assuming the IHttpHandler would need to take precedence over MCMS or
otherwise we have to rely on a 404 error code as a catch-all.

By the way, in MCMS, URLs are aliased and you can simply have this path
http://www.domain.com/SomePath/aabbccddd that either corresponds to a page
(posting) called aabbccdd (it's not a requirement to include an extension!)
or a folder (channel) with that name.

The question with using an IHttpHandler is overhead...probably I should
say...how much overhead is incurred by using http handlers and is there any
noticeable degredation in performance? (MCMS itself adds overhead since pages
are assembled dynamically)

Thanks SA!
"MSDN" wrote:
Hi,

What if you pass your aabbccdd in a hidden field then generate what ever you
want on the fly.
I don't understand what you mean, when you say you don't want to pass in a
query string somepage.aspx?id=aabbccdd can you please explain.
I am willing to learn from you.

Ihttphandlers can look process any filename with a specific extension you
want.
aabbccdd.Adnan
bbccddaa.Adnan
http://www.domain.com/SomePath/aabbccddd.Adnan

SA
"Adnan Al-Ghourabi" <alghourabi at yahoo.com> wrote in message
news:B0**********************************@microsof t.com...
Hi,

We have a need to create pages on the fly for ASP.NET applications based
on
some string that the Url ends with. For example:
http://www.domain.com/SomePath/aabbccdd.

"aabbccdd" does not exist physically on the file system, but we'd like
that
to be handled somehow as an ID, make a call to some other system to
retrieve
data (Web Service, database etc.), and then generate a response page.

One way I am aware of is to use an HttpModule to handle the request and
interpret it accordingly. Note that we do not want to use query strings to
address search engine optimization concerns.

I would appreciate it if you can share you experience or any ideas that
you
have.

Thanks,

Adnan


May 3 '06 #3

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

Similar topics

9
by: Fred | last post by:
Hi, I'm sure there are a bunch of them, but googling just returned full-fledged CMS that require a DBMS and generate dynamic pages. I'd just like a script that would 1. look in a directory...
0
by: Nick | last post by:
Hi all, I'm about to embark on a new project and can't decide quite how to do it. In summary, I have a database whose data I want to use to create html pages for a website. The website will just...
7
by: Rathtap | last post by:
I want to write a C# application (lets call it Generator) that will receive an argument(patient account number) and dynamically generate a series of linked HTML files (claim information, payments,...
12
by: anna | last post by:
Map, generate, and maintain 50% of your .NET application code, namely your business and data objects. Use these objects in ASP.NET, Windows Forms, console or services applications. Business and...
21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
3
by: Mike Dee | last post by:
I posted this back in November 2005 a couple times but did not get any responses. I'm hoping someone here can please shed some light on this. I'm new to index server and can't get any DocTitle...
11
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta...
11
by: Alan Mailer | last post by:
A project I'm working on is going to use VB6 as a front end. The back end is going to be pre-existing MS Access 2002 database tables which already have records in them *but do not have any...
20
by: jjmillertime | last post by:
I'm new so i apologize if this is in the wrong spot. I'm also new to programming in C and i've been searching for quite a while on how to create a program using C that will generate two random...
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
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?
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
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
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
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,...
0
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...

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.