Click here to Skip to main content
15,905,616 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHoverMenu Inside Repeater Control Pin
bgates197015-Jan-09 9:21
bgates197015-Jan-09 9:21 
QuestionTrying to redirect the parent page from popup Pin
Ekjon15-Jan-09 8:22
Ekjon15-Jan-09 8:22 
AnswerRe: Trying to redirect the parent page from popup Pin
TylerBrinks15-Jan-09 8:42
TylerBrinks15-Jan-09 8:42 
GeneralRe: Trying to redirect the parent page from popup Pin
Ekjon15-Jan-09 9:20
Ekjon15-Jan-09 9:20 
GeneralRe: Trying to redirect the parent page from popup Pin
TylerBrinks15-Jan-09 11:55
TylerBrinks15-Jan-09 11:55 
Questiontable row Pin
netJP12L15-Jan-09 6:38
netJP12L15-Jan-09 6:38 
AnswerRe: table row Pin
ToddHileHoffer15-Jan-09 7:25
ToddHileHoffer15-Jan-09 7:25 
QuestionURL Confusion Pin
Tristan Rhodes15-Jan-09 6:35
Tristan Rhodes15-Jan-09 6:35 
Hi Guys,

I've got a function in each of my webpages for generating a link to that page with the approriate QS arguments. However, when i deploy the app, the query strings are broken.

I'm using the following:

<br />
        /// <summary><br />
        /// Method for generating a link to this page with the supplied querystring parameters.<br />
        /// </summary><br />
        /// <param name="search"></param><br />
        /// <returns></returns><br />
        public static string GetLink(string search)<br />
        {<br />
            Uri pathUri = new Uri(HttpContext.Current.Request.Url, string.Format("/Secure/SearchResults.aspx?{0}={1}", QS_SEARCH_TERMS, HttpContext.Current.Server.UrlEncode(search)));<br />
<br />
            return pathUri.ToString();<br />
        }<br />


This works fine local host (cassini - http://localhost:000001/), but when i deploy it to my test enviroment, i have a different root URL - http://server/appname/.

When i run my code, the appname part of the URL is dropped from the concatenation process, and i get resource not found - http://server/resource/.

Any ideas what i have to change to make this work?

Regards

Tris

-------------------------------

Carrier Bags - 21st Century Tumbleweed.

AnswerRe: URL Confusion Pin
ToddHileHoffer15-Jan-09 7:26
ToddHileHoffer15-Jan-09 7:26 
GeneralRe: URL Confusion [modified] Pin
Tristan Rhodes15-Jan-09 22:40
Tristan Rhodes15-Jan-09 22:40 
GeneralRe: URL Confusion Pin
ToddHileHoffer16-Jan-09 2:11
ToddHileHoffer16-Jan-09 2:11 
GeneralRe: URL Confusion Pin
Tristan Rhodes16-Jan-09 5:23
Tristan Rhodes16-Jan-09 5:23 
Questiongridview Pin
mihirkul15-Jan-09 6:07
mihirkul15-Jan-09 6:07 
AnswerRe: gridview Pin
ToddHileHoffer15-Jan-09 7:23
ToddHileHoffer15-Jan-09 7:23 
QuestionSys.WebForms.PageRequestManagerParserErrorException Pin
pmartike15-Jan-09 6:04
pmartike15-Jan-09 6:04 
AnswerRe: Sys.WebForms.PageRequestManagerParserErrorException Pin
CoolFire4eva19-Feb-09 17:35
CoolFire4eva19-Feb-09 17:35 
QuestionProcedure and Codebehind Problem Pin
monika_vasvani15-Jan-09 5:55
monika_vasvani15-Jan-09 5:55 
Answer[Formatting] Procedure and Codebehind Problem Pin
Scott Dorman15-Jan-09 6:20
professionalScott Dorman15-Jan-09 6:20 
AnswerRe: Procedure and Codebehind Problem Pin
Scott Dorman15-Jan-09 6:24
professionalScott Dorman15-Jan-09 6:24 
Questiononselectedindexchanged Pin
Franklinlloyd15-Jan-09 5:16
Franklinlloyd15-Jan-09 5:16 
AnswerRe: onselectedindexchanged Pin
Scott Dorman15-Jan-09 5:31
professionalScott Dorman15-Jan-09 5:31 
QuestionProblem with Repeater........Values get repeated. Pin
Charmy315-Jan-09 4:32
Charmy315-Jan-09 4:32 
AnswerRe: Problem with Repeater........Values get repeated. Pin
Abhijit Jana15-Jan-09 5:28
professionalAbhijit Jana15-Jan-09 5:28 
GeneralRe: Problem with Repeater........Values get repeated. Pin
Charmy315-Jan-09 5:52
Charmy315-Jan-09 5:52 
AnswerRe: Problem with Repeater........Values get repeated. Pin
Charmy315-Jan-09 7:34
Charmy315-Jan-09 7:34 

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.