Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 28058

I want to invoke an error handling page even when my url doesn't have .aspx on it

$
0
0

Howdy.  

I run a legislative website, and one of my client made a cool suggestions.  He wants to be able to just put the bill number he is insterest in on the URL.  like so.  www.legislature.mystate.gov/4001 (for bill 4001).  So I'm thinking easy peezy!Cool Just have the errorhandling page I already redirect to using a web.config file, and look for a number.  If it's a number, process it as a bill number for the current session.  But of course, it's not so easy.Cry When I put in www.legislature.mystate.gov/4001.aspx, it redirects to the errorhandling page.  When I put in www.legislature.mystate.gov/4001 (note there is no aspx) it sends up a very ugly 404 page.  I know it's probably in some easy setting, so how do I get it to work like I want?  Also, I'm super open to better ideas.  

Thanks!


Viewing all articles
Browse latest Browse all 28058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>