Display criterial based webpages from Request.Url.AbsoluteUri rather than request.qureystring asp.net vb

Hi everyone.

Please can anyone help me with my problem below.

At the moment, i have a database driven website with 4 pages.

www.mydomain.co.uk/default.aspx
www.mydomain.co.uk/Staff.aspx
www.mydomain.co.uk/Bulletins.aspx
www.mydomain.co.uk/Contact.aspx

I use request.querystring to find our what page they want to display, ie,

www.mydomain.co.uk/default.aspx?PageId=1

pageid 1 is the home page

From that, it tells me what .txt file with html code to display as the default.aspx has the read .txt file in the background.

Where as www.mydomain.co.uk/Bulletins.aspx?Pageid=2 will list all bulletins on for the site.

The problem i have is that any web stat we have only shows that default.aspx has been visited and not home page.

So i was wondering, is there any way i can change www.mydomain.co.uk/default.aspx?pageid=1 to www.mydomain.co.uk/home.aspx, but display the default.aspx with pageid 1 as the txt file?

i can get the url and break it down depending on where the home.aspx with Request.Url.AbsoluteUri, but it tries to display home.aspx rather than default.aspx?pageid=1.

I also use master pages within all the .aspx pages.

Can this be done or am i going to have to create every page seperatly?

Please, any help would be very greatful for.

Regards
Baker
LVL 1
BakersvilleAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodeCruiserCommented:
Not sure I understand what you want. Have you looked at Server.Transfer method?
0
BakersvilleAuthor Commented:
Thank you CodeCruiser.

Sorry for not being very clear, but after spending more time researching the net, i have found something like URL Rewriting.

Do you happen to know anything about this?
0
CodeCruiserCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BakersvilleAuthor Commented:
Hi codecruiser

Thank you for your reply. I am back in the office on Monday and will look closely at this then.

Baker
0
BakersvilleAuthor Commented:
Sorry for the delay, been working and changing the site to suit.
Very helpful.
Thank you very much
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.