Forum Moderators: open

Message Too Old, No Replies

Solution for Anchor name

Solution for Anchor name

         

dtha20

3:57 am on Jun 17, 2009 (gmt 0)

10+ Year Member



I have meet problem with anchor name with firefox and I'd tried the way like below for C# .net:
in .aspx
<a id="hotelA" name="hotelA">Hotel</a>
in .cs
Response.Redirect("Hotels.aspx?CATID=3#hotelA");

instead of before:
in .aspx
<a name="hotelA">Hotel</a>
in .cs
Response.Redirect("#hotelA");
It's run both in IE and FireFox

marcel

6:54 am on Jun 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi dtha20,

Both of your examples work as I would expect in IE8 and Firefox 3. (although I am not doing any processing of the querystring)

Could you post the exact code I would need to reproduce this problem?