PC Review


Reply
Thread Tools Rate Thread

All subdirectories handled by one aspx page.

 
 
codeboy
Guest
Posts: n/a
 
      5th Dec 2009
I’d like to have my users point their browsers to subdirectories that do not
exist and have them all handled by one aspx page. For example if a user
trays to go to www.mysite.com/fakedir1, www.mysite.com/fakedir2, or
www.mysite.com/fakedir3 they will all be handled by
www.mysite.com/mypage.aspx. I don’t know what fake directories will be
needed so I’d like it to happen for all sub directories. I’d also like the
user to think they are actually in the dir. So the browser will need to
continue to reflect the dir they actually requested.
 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      7th Dec 2009
On Dec 5, 4:31*am, codeboy <code...@discussions.microsoft.com> wrote:
> I’d like to have my users point their browsers to subdirectories that do not
> exist and have them all handled by one aspx page. *For example if a user
> trays to go towww.mysite.com/fakedir1,www.mysite.com/fakedir2, orwww.mysite.com/fakedir3they will all be handled bywww.mysite.com/mypage.aspx. *I don’t know what fake directories will be
> needed so I’d like it to happen for all sub directories. *I’d also like the
> user to think they are actually in the dir. *So the browser will need to
> continue to reflect the dir they actually requested. *


This technique called URL Rewriting, see more
http://www.google.com/search?q=url+rewrite+asp.net
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fire off a completely seperate .aspx page from within an .aspx web page. S_K Microsoft ASP .NET 0 1st Oct 2007 11:40 PM
aspx pages not rendered/handled =?Utf-8?B?RGFtaWFu?= Microsoft ASP .NET 2 28th Aug 2006 12:42 PM
aspx-files in subdirectories Andreas Zita Microsoft ASP .NET 1 25th Dec 2005 11:58 AM
Anyone Find IIS 404 Errors custom handled by ASPX causes viewstate problem? Jonathan Folland Microsoft ASP .NET 0 1st Apr 2005 05:14 PM
How to Pass values between from a popup page aspx & a normal page aspx Marco Antonio Montalvo Durán Microsoft ASP .NET 2 23rd Jan 2004 09:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:22 AM.