I am working on an application that displays a list of items (biglist.aspx).
With each item, there is a link that takes the user to another aspx page for
updating the specific details of that item (updatedetails.aspx). That page
has a button event that saves changes and then redirects back to the main
list.
Here's my issue -- the list page takes a parameter in the querystring. I
have set up anchor tags for each item within the list. Therefore, for
instance, a user clicks on a link that takes him to:
biglist.aspx?listID=100#Item4
Under this scenario, the querystring value for "listID" is 100, as it should
be. This link will then take him directly to the anchor tag for item 4. This
works great when the user clicks on a link to get to that page. However, in
my button event that saves the updates, I am trying to do a Response.Redirect
to the link above to take the user back to the list and the item he was
working on. When I do the Response.Redirect, however, the querystring value
for "listID" reads in as "100#item4", which is obviously incorrect.
I also don't think Server.Transfer would work, since I need the broswer to
see the anchor reference to automatically move down the page to the right
spot.
Any ideas on how to get the desired behavior? Thanks!