K
Klaus Jensen
For a customer I have created a website, where we use dynamic url-rewrites
by using rewritepath in global.asa.
Ie the url /products/gizmo.aspx does not really exist, but I look gizmo up
in the db and find the relevant product, and then do a rewritepath to
productpresentation.aspx?id=whatever
But in some cases, I get a request for /products/someoddproduct.aspx which
does not exist. I then want to send the user a 404-error from code. How do I
do that?
Thanks in advance
- Klaus
by using rewritepath in global.asa.
Ie the url /products/gizmo.aspx does not really exist, but I look gizmo up
in the db and find the relevant product, and then do a rewritepath to
productpresentation.aspx?id=whatever
But in some cases, I get a request for /products/someoddproduct.aspx which
does not exist. I then want to send the user a 404-error from code. How do I
do that?
Thanks in advance
- Klaus