|
Nearly...
storeNum = Mid(HttpContext.Current.Request.Path, InStrRev(Request.QueryString, "/") + 1)
Should be:
storeNum = Mid(HttpContext.Current.Request.Path, InStrRev(HttpContext.Current.Request.Path, "/") + 1)
Global.asax should go in the root of the web application (it serves practicly the same purpose as global.asa in classic ASP).
Oh, another thing I just realised - I think you have to have the first (static) URL as an ASPX page, not a sub directory - otherwise IIS won't pass the request to the ASP.NET process. i.e. change /store/123456/ to /store/123456.aspx (and change the code to extract the ID accordingly)
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
Last edited by Minaki; 06-28-2006 at 05:23 PM..
|