Click here to Skip to main content
15,898,035 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Page_Load calling Sub Pin
kallileo15-Jun-07 5:15
kallileo15-Jun-07 5:15 
GeneralRe: Page_Load calling Sub Pin
kubben15-Jun-07 5:19
kubben15-Jun-07 5:19 
GeneralRe: Page_Load calling Sub Pin
kallileo15-Jun-07 5:35
kallileo15-Jun-07 5:35 
QuestionHttpContext.Request.Url Problem Pin
Jkirt15-Jun-07 3:40
Jkirt15-Jun-07 3:40 
AnswerRe: HttpContext.Request.Url Problem Pin
kubben15-Jun-07 3:51
kubben15-Jun-07 3:51 
GeneralRe: HttpContext.Request.Url Problem Pin
Jkirt15-Jun-07 4:01
Jkirt15-Jun-07 4:01 
GeneralRe: HttpContext.Request.Url Problem Pin
kubben15-Jun-07 4:12
kubben15-Jun-07 4:12 
GeneralRe: HttpContext.Request.Url Problem Pin
Jkirt15-Jun-07 4:59
Jkirt15-Jun-07 4:59 
I think you might be misunderstanding my problem. Let's say my root directory has only the following files:

* index.aspx
* web.config
* global.asax

When the user visits, for example: http://www.mysite.com/tutorials/tute/1

The global.asax file should be able to grab this URL using HttpContext.Current.Request.Url.AbsolutePath.ToLower method and I will use this string to formulate a RewritePath to index.aspx?a=tutorials&tute=1.

As you can see, the directories tutorials, tute and 01 don't exist, so there is no index.aspx file to refer to.

My problem is, IIS and HttpContext.AbsolutePath isn't giving me http://www.mysite.com/tutorials/tute/1 or any of the variables. But the strange thing is, this is all working on localhost.

So it makes me wonder if it's something to do with IIS, or if there is another way to get the typed URL.


Jason.
GeneralRe: HttpContext.Request.Url Problem Pin
kubben15-Jun-07 5:13
kubben15-Jun-07 5:13 
GeneralRe: HttpContext.Request.Url Problem Pin
Jkirt15-Jun-07 5:52
Jkirt15-Jun-07 5:52 
GeneralRe: HttpContext.Request.Url Problem Pin
kubben15-Jun-07 6:02
kubben15-Jun-07 6:02 
GeneralRe: HttpContext.Request.Url Problem Pin
Jkirt15-Jun-07 6:11
Jkirt15-Jun-07 6:11 
GeneralRe: HttpContext.Request.Url Problem Pin
kubben15-Jun-07 6:03
kubben15-Jun-07 6:03 
GeneralRe: HttpContext.Request.Url Problem Pin
Jkirt15-Jun-07 6:18
Jkirt15-Jun-07 6:18 
AnswerRe: HttpContext.Request.Url Problem Pin
Jkirt15-Jun-07 19:35
Jkirt15-Jun-07 19:35 
QuestionMaintaining log Pin
ShuklaGirish15-Jun-07 2:19
ShuklaGirish15-Jun-07 2:19 
AnswerRe: Maintaining log Pin
N a v a n e e t h15-Jun-07 3:27
N a v a n e e t h15-Jun-07 3:27 
QuestionMetadata file 'dll_name' could not be found Pin
Rip Kirby15-Jun-07 1:59
Rip Kirby15-Jun-07 1:59 
QuestionHow to Check Memory leak Pin
Sandeep Akhare15-Jun-07 1:25
Sandeep Akhare15-Jun-07 1:25 
AnswerRe: How to Check Memory leak Pin
Vasudevan Deepak Kumar15-Jun-07 1:49
Vasudevan Deepak Kumar15-Jun-07 1:49 
AnswerRe: How to Check Memory leak Pin
N a v a n e e t h15-Jun-07 3:30
N a v a n e e t h15-Jun-07 3:30 
GeneralRe: How to Check Memory leak Pin
Sandeep Akhare15-Jun-07 4:59
Sandeep Akhare15-Jun-07 4:59 
Questionhow to do this? Pin
lakshmii_n15-Jun-07 1:10
lakshmii_n15-Jun-07 1:10 
AnswerRe: how to do this? Pin
Vasudevan Deepak Kumar15-Jun-07 1:54
Vasudevan Deepak Kumar15-Jun-07 1:54 
AnswerRe: how to do this? Pin
Expert Coming16-Jun-07 1:35
Expert Coming16-Jun-07 1:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.