Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Blog

:

Quick Launch

Blog > Posts > Response.Redirect and the (#) anchor in IE6
May 15
Response.Redirect and the (#) anchor in IE6

In IE6, Response.Redirect does not work properly when you specify an (#) anchor as a bookmark in a string you pass to Response.Redirect().  In one of our project, we used Response.Redirect, specify an ulr and then append the (#) anchor to bookmark where we want the link to navigate to on the targeted page. This works fine in IE 7 and Firefox, but this does not work in IE6. The work around for this is simply appending a meaningless QueryString value after your real request and before the (#) anchor or just add an "&" right before the (#)anchor.

Example:

Response.Redirect("Http://foo.com/detail.aspx?itemid=1#itemdetail);

What you expect to happen is that the link should navigate you to an anchor tag with the name "itemdetail" somewhere on the detail page for itemid=1.

<a name="itemdetail">some details…</a>

This is true in IE 7 and Firefox, but not in IE 6.   In IE6 you can navigate to this anchor if you append it with an "&":

 Response.Redirect("Http://foo.com/detail.aspx?itemid=1&#itemdetail); 

This view cannot be displayed because it exceeds the list view threshold (5000 items) enforced by the administrator.

To view items, try selecting another view or creating a new view. If you do not have sufficient permissions to create views for this list, ask your administrator to modify the view so that it conforms to the list view threshold.

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


CommentUrl


Attachments