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

ASP.NET

 
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 
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 
Hi Todd,

I was not in the context of the page when running this block of code, however i have found a solution.

<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, int searchStart)<br />
        {<br />
            string path = VirtualPathUtility.ToAbsolute("~/Secure/SearchResults.aspx");<br />
<br />
            return string.Format("{0}?{1}={2}&{3}={4}", path, QS_SEARCH_START, searchStart, QS_SEARCH_TERMS, HttpContext.Current.Server.UrlEncode(search));<br />
        }<br />


While this didn't generate the complete URL, it did provide me with one that works from any location in the application.

Thanks for taking the time to reply

Regards

Tris

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

Carrier Bags - 21st Century Tumbleweed.

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 
Questionexcel upload probs Pin
Member 387988115-Jan-09 4:27
Member 387988115-Jan-09 4:27 
AnswerRe: excel upload probs Pin
ToddHileHoffer15-Jan-09 4:42
ToddHileHoffer15-Jan-09 4:42 
Question[Message Deleted] Pin
Charmy315-Jan-09 4:05
Charmy315-Jan-09 4:05 
AnswerRe: Values get overwrite in repeater Pin
Abhijit Jana15-Jan-09 4:29
professionalAbhijit Jana15-Jan-09 4:29 

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.