Bookmarks and database driven websites

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Hi, I have a website that is created dynamically from informaiton pulled
from a SQL database.

The page is shown by getting the page ID from the querystring and then
retrieving the associated page text from the database and displaying this
information inside an aspx template.


e.g

index.aspx?id=1 // Shows the homepage
index.aspx?id=2 // Shows the contact page

etc

The person now wants bookmarks included at the top of the page.

I tried placing a <a name="bookmark">my bookmark</a> in the HTML code and
then placing this in the querystring

index.aspx?id=1#bookmark

but obviously, this will not work, so my question is how do I use bookmarks
in an database driven web site??

Thanks
Mark
 
Hi all, I have solved it (Could not find any info anywhere so just started
mucking around trying all sorts of things).
Anyway, this seems to work


../index.aspx?view=2&#aboutus

Where aboutus is the bookmark placed in the HTML via <a name="aboutus">About
us</a>

Hope this helps someone else out sometime :)
Cheers
Mark
 
Back
Top