master/detail page problem

Ask a Question related to ASP, Design and Development.

  1. #1

    Default master/detail page problem

    Hi Everyone

    I am having some problems with a master detail page i have set up to
    catalogue brochures from my site.
    On my master page [url]www.tripakltd.com/brochures.asp[/url] users are invited to
    select from a list of brochure categories, then once they press the submit
    button they will be taken to a different page [url]www.tripakltd.com/library.asp[/url]
    The problem i am having, is that when I tell the detail page about the
    variable from the master page as a % as opposed to a hard number, i.e 1 or 2
    I get an error, Therfore for the purpose of displaying the page i have put
    in a hard number (rsLibrary__icategoryid = "1" as opposed to ="%") but of
    course this only returns to me brochures that belong to categoryID.
    How do i fix this problem? all my other master/detail pages seem, to work,
    save this one.

    To simplify the problem i have created two pages with just the code ( i.e no
    graphics, or templates etc..) that carry the same technology, and have
    included the relevant source code on the same page, with a .txt extension
    [url]www.tripakltd.com/brochures1.asp[/url] and [url]www.tripakltd.com/brochures1.txt[/url]
    [url]www.tripakltd.com/library1.asp[/url] and [url]www.tripakltd.com/library1.txt[/url]

    Can anyone help me sort out this problem?

    I would greatly appreciate it,

    Thanks so much

    Raphael


    Raphael Gluck Guest

  2. Similar Questions and Discussions

    1. Bug: (Annoying) Master-Detail Page throwing blanks randomly
      We are facing a very unique and rather annoying bug in our Flex project. The bug happens only on our Test servers and ran w/o issues on developer...
    2. Bug: Master-Detail Page throwing blanks randomly
      We are facing a very unique and rather annoying bug in our Flex project. The bug happens only on our Test servers and ran w/o issues on developer...
    3. Two cfgrids acting as master/detail page
      I want to create a master/detail sheet using two cfgrids in the same form, one on top of the other. How do I bind the display of the second grid...
    4. Master Detail Page Problem
      Hi, could anyone please help with a problem I've encountered. I have set up a master detail page using Dreamweaver's 'Insert Master Detail...
    5. master/detail page links
      Help please, I've created a master/detail page no problem but on the master page I only want the link to the detail page to be active if there is...
  3. #2

    Default Re: master/detail page problem

    If I get you right I htink the problem is that your select box does not have
    a name......set the select as CategoryID and then the value should get
    posted to the library.asp page.

    Thats if I understand the question right.

    Stu

    "Raphael Gluck" <Idont@haveone.honest> wrote in message
    news:eojxTK8lDHA.2732@TK2MSFTNGP11.phx.gbl...
    > Hi Everyone
    >
    > I am having some problems with a master detail page i have set up to
    > catalogue brochures from my site.
    > On my master page [url]www.tripakltd.com/brochures.asp[/url] users are invited to
    > select from a list of brochure categories, then once they press the submit
    > button they will be taken to a different page
    [url]www.tripakltd.com/library.asp[/url]
    > The problem i am having, is that when I tell the detail page about the
    > variable from the master page as a % as opposed to a hard number, i.e 1 or
    2
    > I get an error, Therfore for the purpose of displaying the page i have put
    > in a hard number (rsLibrary__icategoryid = "1" as opposed to ="%") but of
    > course this only returns to me brochures that belong to categoryID.
    > How do i fix this problem? all my other master/detail pages seem, to work,
    > save this one.
    >
    > To simplify the problem i have created two pages with just the code ( i.e
    no
    > graphics, or templates etc..) that carry the same technology, and have
    > included the relevant source code on the same page, with a .txt extension
    > [url]www.tripakltd.com/brochures1.asp[/url] and [url]www.tripakltd.com/brochures1.txt[/url]
    > [url]www.tripakltd.com/library1.asp[/url] and [url]www.tripakltd.com/library1.txt[/url]
    >
    > Can anyone help me sort out this problem?
    >
    > I would greatly appreciate it,
    >
    > Thanks so much
    >
    > Raphael
    >
    >

    Stuart Palmer Guest

  4. #3

    Default Re: master/detail page problem

    Hi,

    I think the problem is that you're trying to pull in the product ID from the
    querystring collection, but the form you're using is POSTing the data. So,
    use Request.Form instead of Request.Querystring.

    Ray at work


    "Raphael Gluck" <Idont@haveone.honest> wrote in message
    news:eojxTK8lDHA.2732@TK2MSFTNGP11.phx.gbl...
    > Hi Everyone
    >
    > I am having some problems with a master detail page i have set up to
    > catalogue brochures from my site.
    > On my master page [url]www.tripakltd.com/brochures.asp[/url] users are invited to
    > select from a list of brochure categories, then once they press the submit
    > button they will be taken to a different page
    [url]www.tripakltd.com/library.asp[/url]
    > The problem i am having, is that when I tell the detail page about the
    > variable from the master page as a % as opposed to a hard number, i.e 1 or
    2
    > I get an error, Therfore for the purpose of displaying the page i have put
    > in a hard number (rsLibrary__icategoryid = "1" as opposed to ="%") but of
    > course this only returns to me brochures that belong to categoryID.
    > How do i fix this problem? all my other master/detail pages seem, to work,
    > save this one.
    >
    > To simplify the problem i have created two pages with just the code ( i.e
    no
    > graphics, or templates etc..) that carry the same technology, and have
    > included the relevant source code on the same page, with a .txt extension
    > [url]www.tripakltd.com/brochures1.asp[/url] and [url]www.tripakltd.com/brochures1.txt[/url]
    > [url]www.tripakltd.com/library1.asp[/url] and [url]www.tripakltd.com/library1.txt[/url]
    >
    > Can anyone help me sort out this problem?
    >
    > I would greatly appreciate it,
    >
    > Thanks so much
    >
    > Raphael
    >
    >

    Ray at Guest

  5. #4

    Default Re: master/detail page problem

    Thanks for those ideas
    I thought they looked just right to sort it, but when i tried, it still
    didnt work.
    Do you have any other ideas?

    Thanks so much


    Raphael


    Raphael Gluck Guest

  6. #5

    Default Re: master/detail page problem

    Hi Ray
    I tried chaging it to Request.Form but still it only works with the "1" and
    not with the "%"

    Do you have any other idea what the cause may be?

    Thanks very much

    Raphael


    Raphael Gluck Guest

  7. #6

    Default Re: master/detail page problem

    The name of your select box is "select" not "categoryID."

    You need to learn how to debug things. (I don't mean that the way it
    sounds.) If you try to go right from point A to point Z and you don't get
    there, you have to look at B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q,
    R, S, T, U, V, W, X, and Y.


    So, you have a form with a select box. The first thing you'd want to do to
    debug this is to verify that the value from the select is being passed.
    Here's what you'd do in library1.txt.


    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <!--#include file="Connections/Tripak.asp" -->
    <%
    Dim rsLibrary__icategoryid
    rsLibrary__icategoryid = "%"
    If (Request.Form("CategoryID") <> "") Then
    rsLibrary__icategoryid = Request.Form("CategoryID")
    End If

    RESPONSE.WRITE RSLIBRARY_ICATEGORYID
    RESPONSE.END

    What's that tell you?

    It'll tell you that rsLibrary__icategoryID is always %.
    Then you wonder why that is. And you look at that code and you realize that
    it must be because the If line is never true.
    Then you wonder why that is. And you realize that is must mean that
    Request.Form("CategoryID") is never <> "".
    Then you wonder why that is. And you look at the form and realize that you
    didn't name your select "CategoryID."

    Or, you do something like
    <%
    For each x in Request.form
    Response.write x & " = " & request.form(x) & "<br>"
    Next
    RESPONSE.END
    %>

    And you see all the form values. And then you notice that there is no
    request.form("CategoryID"), at which time you realize that you named the
    select wrong.

    Ray at work





    "Raphael Gluck" <Idont@haveone.honest> wrote in message
    news:%23RXry99lDHA.1072@TK2MSFTNGP09.phx.gbl...
    > Hi Ray
    > I tried chaging it to Request.Form but still it only works with the "1"
    and
    > not with the "%"
    >
    > Do you have any other idea what the cause may be?
    >
    > Thanks very much
    >
    > Raphael
    >
    >

    Ray at Guest

  8. #7

    Default Re: master/detail page problem

    Hi Ray,

    Thanks i just changed the Select box, and called it CustomerID and now it
    works,

    But you are right to admonish me. I must learn!
    This was done with a WSYWYG editor (dreamweaver MX) and i really must chuck
    it .
    I have done in principal. I am not using it to go further. I am now catching
    up by going backwards and learning the basics, so as to move forwards.

    Thanks very much

    Raphael


    Raphael Gluck Guest

  9. #8

    Default Re: master/detail page problem

    Hi Raphael,
    The solution I suggested was the solution you finally said fixed it.....what
    did you try that didn't work based on my suggestion? Interesting for me as
    if I am not explaining ideas right then it's pointless me suggesting stuff.
    :o)

    Stu

    "Raphael Gluck" <Idont@haveone.honest> wrote in message
    news:OV4PQ99lDHA.2776@tk2msftngp13.phx.gbl...
    > Thanks for those ideas
    > I thought they looked just right to sort it, but when i tried, it still
    > didnt work.
    > Do you have any other ideas?
    >
    > Thanks so much
    >
    >
    > Raphael
    >
    >

    Stuart Palmer Guest

  10. #9

    Default Re: master/detail page problem

    Gazing into my crystal ball I observed "Raphael Gluck"
    <Idont@haveone.honest> writing in
    news:eGT2mT#lDHA.3316@tk2msftngp13.phx.gbl:
    > Hi Ray,
    >
    > Thanks i just changed the Select box, and called it CustomerID and now
    > it works,
    >
    > But you are right to admonish me. I must learn!
    > This was done with a WSYWYG editor (dreamweaver MX) and i really must
    > chuck it .
    > I have done in principal. I am not using it to go further. I am now
    > catching up by going backwards and learning the basics, so as to move
    > forwards.
    >
    > Thanks very much
    >
    > Raphael
    >
    >
    May I suggest [url]http://www.chami.com/html-kit[/url] . Free, syntax highlighting,
    save your snippets, save your templates, plugins, HTML-Tidy plugin, other
    plugins.

    --
    Adrienne Boswell
    Please respond to the group so others can share
    [url]http://www.arbpen.com[/url]
    Adrienne 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