Anchor for clicking on an element in asp.net page
I have a datagrid on asp.net page "A" that shows different customer orders. When clicking on any line / OrderId, the user is redirected to another page "B" which displays the order details. When the user clicks "Back to page A" on page B, I need to have the same order ID that is "linked" on page A. How do I achieve this functionality in asp.net?
Thanks for reading.
0
a source to share
2 answers
Joel's answer is correct, however if you have a more complex scenario you can do the following.
Change the display on page A to display <a name="myRecord" />
for each row of the grid.
On page B, you can redirect to page A and pass #myRecord at the end of the url to navigate to a specific record.
+1
a source to share