iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2008, 07:46 AM
WebProWorld New Member
 
Join Date: Oct 2005
Posts: 23
mlsg04 RepRank 0
Default How to HREF a dynamic URL?

Hi,

I wonder is it possible to hyperlink using HREF to a dynamic URL? I've created a eNewsletter for my client and hope to hyperlink to some of the web pages but the website is built using ASPX.

The website is advantage and the sections I tried to link to are the "What's New". The 4 pages show the same URL so I guess there is no way I could directly link to it. Anyway it gave me error when I tried to do so.

Could anyone kindly enlighten on this? Many thanks in advance.

-----------------------------------------------------------------
Singapore professional logo templates, business templates, powerpoint, web, project management, sales and marketing templates.
Reply With Quote
  #2 (permalink)  
Old 05-20-2008, 11:02 AM
Dubbya's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,300
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
  #3 (permalink)  
Old 05-22-2008, 05:08 AM
WebProWorld New Member
 
Join Date: Oct 2005
Posts: 23
mlsg04 RepRank 0
Default Re: How to HREF a dynamic URL?

Hi Dubbya,

Thank you for the prompt reply. Let me try out and see how it works.

---------------------------------------
Singapore professional logo templates, business templates, powerpoint, web, project management, sales and marketing templates.
Reply With Quote
  #4 (permalink)  
Old 05-23-2008, 04:10 AM
NetProwler's Avatar
WebProWorld Member
 
Join Date: Jan 2007
Posts: 89
NetProwler RepRank 2
Default Re: How to HREF a dynamic URL?

There is another trick many directory scripts use to display the latest sites - use a counter or the date field from the database to show the recent product. This way you need not pass on any parameter in the query string.

.2 cents
Reply With Quote
  #5 (permalink)  
Old 05-23-2008, 10:36 AM
Dubbya's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,300
Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4Dubbya RepRank 4
Default Re: How to HREF a dynamic URL?

That'll work too!

Good call.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The HREF BASE tag is it any help? Mondo Search Engine Optimization Forum 5 11-13-2007 10:45 AM
Search Engine recognition - DIV tag inside A HREF tag supernatural_247 Graphics & Design Discussion Forum 5 05-30-2007 06:43 AM
<A HREF vs. <Post Action for referral links CIGrp Google Discussion Forum 2 12-05-2006 06:56 PM
Base Href computergenius Web Programming Discussion Forum 3 04-08-2006 11:12 AM


All times are GMT -4. The time now is 09:15 AM.



Search Engine Optimization by vBSEO 3.3.0