Bookmarks and database driven websites

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
 
M

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top