|
URL Rewrting in ASP.net 2.0 and/or IIS 6.0
Hello,
I have a page, custom.aspx, that accepts a parameter in the query string called 'id'. Depending on the ID, it will load the proper content for a custom donation page.
I need to be able to set one of these ID, e.g 999, to be the default page. So instead of going to website.com/donate/custom.aspx?id=999, I would like the end user to be able to navigate simply to website.com/donate and for it to display custom.aspx?id=999. I cannot simply do a forward as I never want the user to see the custom.aspx?id=999 for the default page. All the other non-default pages should be available through website.com/donate/custom.aspx?id=xxx.
I have not been able to figure how to do this and am not sure if this is something I should be tackling in IIS or in my ASP.net code-behind. Any pointers, examples, or help is greatly appreciated!
Thanks,
Brett
|