I would like to know where the Framework gets the value that Request.ApplicationPath returns.
I have often used it to make sure I am not hardcoding my server.Transfer and response.redirect bits.
For example I want to transfer the page to say bubba.aspx with some querystring variables
Response.Redirect(Request.ApplicationPath + "/bubba.aspx?Center=" + myCenterVariable.ToString());
The problem is that when I uploaded this to the production server application path is returning "/". So I get the page not found error and the address bar shows
"
It should be showing "My development machine does work as it shows.
"
Not quite sure what is going on here and my brain is hurting me. Your help is appreciated.
That'l do donkey, that'l do
Mark
If you are unsure of forum etiquette check here faq796-2540
I have often used it to make sure I am not hardcoding my server.Transfer and response.redirect bits.
For example I want to transfer the page to say bubba.aspx with some querystring variables
Response.Redirect(Request.ApplicationPath + "/bubba.aspx?Center=" + myCenterVariable.ToString());
The problem is that when I uploaded this to the production server application path is returning "/". So I get the page not found error and the address bar shows
"
It should be showing "My development machine does work as it shows.
"
Not quite sure what is going on here and my brain is hurting me. Your help is appreciated.
That'l do donkey, that'l do
![[bravo] [bravo] [bravo]](/data/assets/smilies/bravo.gif)
If you are unsure of forum etiquette check here faq796-2540