Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi all! We have been experiencing an issue on site where threads have been missing the latest postings. The platform host Vanilla are working on this issue. A workaround that has been used by some is to navigate back a page or two to re-sync the thread and this will then show latest posts. Thanks, Mike.

Help! ASP.NET URL rewriting expertise needed!

  • 07-11-2008 7:23pm
    #1
    Registered Users Posts: 87 ✭✭


    I'm working on an ASP.NET site at the moment that needs to direct people to the right page from a friendly URL...

    For example, the actual page address is this:
    http://www.thesite.com/themarket/page.aspx?id=x

    ... and people need to be able to access it from a URL like this:
    http://www.thesite.com/themarket/theproductname

    ... all the friendly page names are in the pages database, so I'll need to query that to find the appropriate page to direct them to. There are three different "themarket" pages, each with totally different designs.

    Now, I was going to do this with a custom 404 page, but whenever you enter a URL like the friendly one above, I get an XML error, saying "not well-formed". I assume the default.aspx page in the relevant "themarket" directory must be intercepting the request and trying to do something with it, but I don't know how to change this behaviour. I know there's supposed to be a better way to do it using code in the global.asax page, but I have no idea how to do it.

    This is my first proper ASP.NET site - I only recently graduated to .NET from Classic ASP, so most of these concepts are very new to me.

    Any help anyone can offer would be appreciated... I am completely flummoxed! :confused:


Comments

Advertisement