View Single Post
  #2 (permalink)  
Old 05-20-2008, 11:02 AM
Dubbya's Avatar
Dubbya Dubbya is offline
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,298
Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4
Default Re: How to HREF a dynamic URL?

This is a cinch if you generate the links dynamically as well.

For example when you save the new product to your database, you can add a new column and field value called "features".

On the home page, you can build your "What's New" link section by checking for products flagged with the field value of "features".

Build the links using the ID of the recordset containing the field value and use the same resulting page, in your case "whatsnew_more.aspx" to call the database and retrieve the product information according the ID number passed in the link.

For example:

The dynamically built hyperlinks in the"What's New" section of the home page might look like this:

HTML Code:
<a href="http://www.yoursourcingadvantage.com/whatsnew_more.aspx?item=126">Read More >></a>
When the "whatsnew_more.aspx" page loads, it should check for an "item" value in the querystring, retrieve the appropriate recordset and build the product details page accordingly.

Hope this gives you an idea.

.02
Reply With Quote