Response.Redirect and locating to specific area on page
-
1. Page lists courses, each with a link to the course detail 2. User clicks on course detail, shows new page with detail 3. User clicks on "Add course"; after it adds the course it needs to response.redirect back to the list of courses, to the specific area on the page from whence they came I have tried putting an anchor tag on the page like this: I tried the following lines of code: 1. Response.Redirect("mypage.aspx#COURSE123?type=daily&day=2004-10-17") or 2. Response.Redirect("mypage.aspx?type=daily&day=2004-10-17#COURSE123") For #1, my application could not find the "type" query string parameter so did not navigate to the appropriate control on the page. For #2, I got an error because it thought that "#COURSE123" was part of the "day" query string parameter. What am I doing wrong? ___________________________________________________________________ Ultimate wisdom from the WebMaster: "You know what...I just don't like that."
-
1. Page lists courses, each with a link to the course detail 2. User clicks on course detail, shows new page with detail 3. User clicks on "Add course"; after it adds the course it needs to response.redirect back to the list of courses, to the specific area on the page from whence they came I have tried putting an anchor tag on the page like this: I tried the following lines of code: 1. Response.Redirect("mypage.aspx#COURSE123?type=daily&day=2004-10-17") or 2. Response.Redirect("mypage.aspx?type=daily&day=2004-10-17#COURSE123") For #1, my application could not find the "type" query string parameter so did not navigate to the appropriate control on the page. For #2, I got an error because it thought that "#COURSE123" was part of the "day" query string parameter. What am I doing wrong? ___________________________________________________________________ Ultimate wisdom from the WebMaster: "You know what...I just don't like that."
Well you could pass the information in a session variable. When the page loads, check the variable, if variable exists then display the apprpoiate information. Just a thought.
-
Well you could pass the information in a session variable. When the page loads, check the variable, if variable exists then display the apprpoiate information. Just a thought.
Good idea; how then do I scroll to a specific spot on the page? ___________________________________________________________________ Ultimate wisdom from the WebMaster: "You know what...I just don't like that."
-
1. Page lists courses, each with a link to the course detail 2. User clicks on course detail, shows new page with detail 3. User clicks on "Add course"; after it adds the course it needs to response.redirect back to the list of courses, to the specific area on the page from whence they came I have tried putting an anchor tag on the page like this: I tried the following lines of code: 1. Response.Redirect("mypage.aspx#COURSE123?type=daily&day=2004-10-17") or 2. Response.Redirect("mypage.aspx?type=daily&day=2004-10-17#COURSE123") For #1, my application could not find the "type" query string parameter so did not navigate to the appropriate control on the page. For #2, I got an error because it thought that "#COURSE123" was part of the "day" query string parameter. What am I doing wrong? ___________________________________________________________________ Ultimate wisdom from the WebMaster: "You know what...I just don't like that."