Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How pull data into variables of hyperlink in asp

    This question is about creating a hyperlink in an asp coded email template for an webstore that has two variables. The template pulls customer data into the email.

    Here is the email template:

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <style type="text/css">body,table,td {font: 11px Verdana; color: #000000;}</style>
    <body text="#000000">
    <table width="650" border="1" cellspacing="0" cellpadding="20" bgcolor="#FFFFFF" bordercolor="#CCCCCC" align="center">
    <tr>
    <td><a href="../../Default.asp">$(CompanyLogo)</a><br>
    <br>
    Hello $(FirstName),<br>
    <br>
    Your order has shipped. (Order#: $(OrderNo) placed on $(OrderDate))<br>
    $(DownloadLink)
    <br>
    <table width="100%" border="0" cellspacing="1" cellpadding="5">
    <tr valign="top">
    <td colspan="2">

    </td>
    </tr>
    </table>
    <br>
    <b>Thanks again for shopping at $(StoreName)!</b><br>
    Visit us anytime at <a href="$(HomeURL)">$(HomeURL)</a></td>
    </tr>
    </table>
    </body>
    </html>

    I would like to add a hyperlink for the customer to get their product which has a file name combination of their customer number and order number. This is what I have so far and is not working:

    href="/v/vspfiles/photos/uploads/renderings/$(CustomerID)rendering$(OrderNo).pdf">CLICK HERE</a></td>

    The hyperlink is not populating variables. How can a hyperlink pull the data in this asp environment? All help or suggestions appreciated.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,210
    Thanks
    80
    Thanked 4,571 Times in 4,535 Posts
    The notation $(xxxx) is *NOT* anything standard in ASP.

    So the problem is *probably* that your ASP code is not recognizing one of the $(...) encodings.

    You will have to show the ASP code that processes the template.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •