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

Virtual Path Providers

I have a quick question in regards to Virtual Path Providers (VPP) as
I've been trying to determine if going that route for URL Rewriting
is the best path.

First let me tell you that I've been scouring the internet to find
some good examples of VPP in use for Rewriting and it had been
difficult. MSDN posted a good article about their URI scheme at
(http://msdn.microsoft.com/msdnmag/is...02/InsideMSDN/) which gave
a good insight on using IHttpModules and using RewritePath to a fake
file so the VPP would pick it up.

I would personally like to take the path of chaining the processing of
my URL's. I will try and explain what I'm referring to using the
following URL as an example:

http://sandiego.shaun.com/people/Will/Pictures

First I would like to break the URL up into manageable tokens.

1. First I would like to break up the host (sandiego.shaun.com) by
parsing out the location (sandiego) and placing that info into the
application context.
2. Second I would take the first token "people" and compare that to
a list recognized tokens. As part of a "recognized" token it would
include a path to some other entity that would further process the
remaining tokens (if they exist.) I would assume I could pass the
request to say "People.aspx"
3. "People.aspx" would either display a list of people if no more
tokens exist in the URL or would parse the remaining tokens and move
down the chain.

Is this something that I should do by creating a LONG list of regular
expressions that would be sorted by most descriptive to the least and
use RewritePath or can you point me in the right direction? I am not
looking for a solution per se but more of some advice on which
direction I should take. I am not opposed to having a single
"default.aspx" page and loading User Controls down the chain. I
feel like that path is something that would have been done back in the
pre .NET days.

Thanks,
Shaun

Nov 28 '06 #1
0 879

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

Similar topics

4
by: | last post by:
Is it possible to include my remote web server path eg: m:/html/root/site1 | m:/html/root/site2 etc ....in virtual includes.... Thus eliminating the need to create duplicate INC files in each...
5
by: Tom Vogel | last post by:
Creating a subfolder within my ASP.NET application folder fails with the above error, but only at my hosting provider. The command: Directory.CreateDirectory(path) Path is set to...
2
by: §iD` | last post by:
Hi! I would like to create a virtual folder (which I want to mount) and populate managing his content by a DLL or something like that in VB.NET (2.0). How can I acomplish this? Thanks to...
14
by: Lorenzo | last post by:
Hello, I have a web application with a virtual directory in it. With 'virtual directory' i mean a folder whose physical path is different from the physical path of the application, but in which...
4
by: tommaso.gastaldi | last post by:
Hi friends I was in the need to find a sort of "definitive" :) solution to transform a virtual path such as "~/MyDir/MyFile into a full web address. In particular I needed it * within web...
8
by: JJ | last post by:
I'm confused about paths. I have a functionn that uses the mappath method, which I think requires a virtual path (is that the same as a relative path?). But this doesn't always work as the...
4
by: =?Utf-8?B?SmVmZiBCZWVt?= | last post by:
Best way I can think to describe this is through an example. I have a virtual directory, let's call it "MyVirtualDirectory" that maps to \\MyServer\Shared. I have a path that is...
4
by: tshad | last post by:
I have a site www.stf.com and a site www.stfstage.com (where I do all my testing). The problem is that www.stfstage.com is only internal and I need to get access from the outside (without...
5
by: marss | last post by:
Server.MapPath("~/page.aspx") returns the physical file path based on the specified virtual path. Is there any reverse method to get the virtual path based on the physical path (both pathes belong...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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
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.