Link to a page dependent on Field Value

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Link to a page dependent on Field Value

    ASP / MSSQL

    Hi

    I have a collectors database that stores details of various pieces of
    sporting memorabilia - books, medals, trophies etc. I've created a view that
    pulls all items that were manufactured, published or issued by the same
    company.

    I've created a simple page that lists the results from this view. The
    problem I'm facing is when I try and create a 'details page' for the items.

    As each of the item types can have different fields e.g. Books would have a
    field for number pages, Trophies would have a field for engraved / not
    engraved etc. I can't think of a way to have a single 'item details' page as
    each item type has fields unique to that item type, unless I had multiple If
    / Thens to display relevant fields and text labels for the fields etc.

    What I'd like to have is some way of having a link to a specific page
    dependant on the item type e.g. if the item was a Book go to
    'book_details.asp?ItemID=999' or a Trophy to 'trophy_detail.asp?ItemId=1000'

    Is it possible to somehow create a 'dynamic' link dependant on the ItemType
    or should I have a single details page with If / Thens?

    It all sounds very confusing doesn't it, but any pointers or advice would be
    most welcome!

    Thanks!


    Karl Goddard Guest

  2. Similar Questions and Discussions

    1. Auto population of field from a link
      I am trying to automatically select an option from a drop down list on a contact form when a user clicks on a link from another page. For example,...
    2. html link in dyn. text field
      I have a Flash movie with a dynamic textfield in it. loaded are php and html texts by use of the (Flash)menu. I would like two things: A. a...
    3. INSERT 3 fields from 2 menus - make 3rd field dependent on choice of 1st menu?
      ASP/VBScript/Access db I need to submit 3 fields into a simple table. The 3 fields are: Event (taken from events table) Artist (taken from...
    4. Start Page gives incorrect link to site's main page
      I designed a small site in Dreamweaver and imported it into Contribute. It's an ASP-based site, so the index file is index.asp, not index.html. I...
    5. A selection changes on asp page with 6 dependent list boxes, when back
      Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date....
  3. #2

    Default Re: Link to a page dependent on Field Value

    You have two choses really, namely multiple IF statements or different
    pages. I think that the former is preferable.

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "Karl Goddard" <karlDOTgoddard@primary-ict.co.uk> wrote in message
    news:d3t6dg$b4r$1@forums.macromedia.com...
    > ASP / MSSQL
    >
    > Hi
    >
    > I have a collectors database that stores details of various pieces of
    > sporting memorabilia - books, medals, trophies etc. I've created a view
    that
    > pulls all items that were manufactured, published or issued by the same
    > company.
    >
    > I've created a simple page that lists the results from this view. The
    > problem I'm facing is when I try and create a 'details page' for the
    items.
    >
    > As each of the item types can have different fields e.g. Books would have
    a
    > field for number pages, Trophies would have a field for engraved / not
    > engraved etc. I can't think of a way to have a single 'item details' page
    as
    > each item type has fields unique to that item type, unless I had multiple
    If
    > / Thens to display relevant fields and text labels for the fields etc.
    >
    > What I'd like to have is some way of having a link to a specific page
    > dependant on the item type e.g. if the item was a Book go to
    > 'book_details.asp?ItemID=999' or a Trophy to
    'trophy_detail.asp?ItemId=1000'
    >
    > Is it possible to somehow create a 'dynamic' link dependant on the
    ItemType
    > or should I have a single details page with If / Thens?
    >
    > It all sounds very confusing doesn't it, but any pointers or advice would
    be
    > most welcome!
    >
    > Thanks!
    >
    >

    Paul Whitham TMM Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139