G
Guest
I have this idea, I need to know if it is possible and how.
Let's say you have a content managed site with all its structure and content - everything in a relational database
And a "blank" page that loads content from the database. This one single page would have to know what content is requested. Obviously this could be done by pageIDs in querystring and whatnot but this is not what I'd like
Here's what I need
The "blank" page lies in root of the web application and is named Default.aspx. I want every request to the website to be "transferred" to this page. So if someone types http://mysite.com/sales/books I want the "blank" page to be loaded instead of trying to load /sales/books/Default... which doesn't exist. The blank page should read the request URL and separate 'sales' and 'books' from the rest of the URL and using those values load the right content from the database.
If there is no content in the database stored under sales/books the blank page would try to Server.Transfer to a real page that was actually requested '/sales/books'. This isn't really that neccessary for what I have in mind but I'd like to keep the option to load other real existing pages just in case
Can someone point me in the right direction? How to force IIS or the httpapplication to always load the same page no matter what the request URL is
Let's say you have a content managed site with all its structure and content - everything in a relational database
And a "blank" page that loads content from the database. This one single page would have to know what content is requested. Obviously this could be done by pageIDs in querystring and whatnot but this is not what I'd like
Here's what I need
The "blank" page lies in root of the web application and is named Default.aspx. I want every request to the website to be "transferred" to this page. So if someone types http://mysite.com/sales/books I want the "blank" page to be loaded instead of trying to load /sales/books/Default... which doesn't exist. The blank page should read the request URL and separate 'sales' and 'books' from the rest of the URL and using those values load the right content from the database.
If there is no content in the database stored under sales/books the blank page would try to Server.Transfer to a real page that was actually requested '/sales/books'. This isn't really that neccessary for what I have in mind but I'd like to keep the option to load other real existing pages just in case
Can someone point me in the right direction? How to force IIS or the httpapplication to always load the same page no matter what the request URL is