Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default One row per page.

    Hi folks,
    Here is what I am trying to achieve. I have a database with about 20
    columns(fields), the first one being a unique ID. I am trying to get a
    page which will dispaly the fields in a specific format. So far I am
    able to do this to a certain extent. What I want to happen is that
    when I click on a link on one page, it should use the id number of the
    row (passed thru the url) to load a page that shows the data of that
    row only. I know this is possible because I have seen it many times
    but I dont know how to get the functionality.

    Thanks in advance
    Deepiceman Guest

  2. Similar Questions and Discussions

    1. Splitting or separating 1 multi page pdfdocument into individual page documents
      I am looking for any product that will take a multi page pdf file and burst or separate it into individual pdf files created from each page. Mac...
    2. Trouble loading administrator/index.cfm page--i am askedto save the page
      Please help....i've been stuck for days on this problem... Basically, I installed coldfusion and at the end of the installation, it told me that...
    3. Accessing Values of local variables in previous page when using custom error page
      Hello, I have created a nice funky 500 - 100 error page which gives a nicer error; happily loops through and supplies querysting information, all...
    4. Prevent 'Page has expired' when a client hits back to return to a search page
      I have a search page that I want to enable private caching so that when a user hits the back button they dont get the page has expired error. I...
    5. Calling a html page from an asp page then returning to the next statement on the original asp page
      Hi! I have an ASP page that calls excel to create a report. This works fine. Now I need to call a html calendar page to filter what rows are...
  3. #2

    Default Re: One row per page.

    if you ar efamiliar with querystring there are noe problem.

    mainpage
    * = prototype

    * open database and return all rows
    do while not rs.eof
    %>
    <a href="details.asp?id=<%rs.fields("id")%>"> ''add a querystring
    <%=rs.fields("name")%></a>
    <br><%
    rs.movenext (very essensial.. have i forgot this line sometimes
    :o )
    loop

    * close db

    detailpage


    * open database
    rs.open "select * from users where id="&request("id")&"" '' read the
    querystring
    * gets the specified record





    "Deepiceman" <deepiceman@yahoo.com> wrote in message
    news:f07dfae.0308191256.5e22acb5@posting.google.co m...
    > Hi folks,
    > Here is what I am trying to achieve. I have a database with about 20
    > columns(fields), the first one being a unique ID. I am trying to get a
    > page which will dispaly the fields in a specific format. So far I am
    > able to do this to a certain extent. What I want to happen is that
    > when I click on a link on one page, it should use the id number of the
    > row (passed thru the url) to load a page that shows the data of that
    > row only. I know this is possible because I have seen it many times
    > but I dont know how to get the functionality.
    >
    > Thanks in advance

    Paal Andersen Guest

  4. #3

    Default Re: One row per page.

    Is this what you mean?

    page of links:
    ' set up connection, recordset
    do until rs.EOF
    nThisID = rs("ID")
    sThisName = rs("name")
    response.write "<a href='oneRow.asp?id=" & nThisID & "'>" &
    sThisName & "</a><br>"
    rs.movenext
    loop

    oneRow.asp:
    nThisID = request.querystring("id")
    sSQL = "Select field1, field2 from table1 where ID = " & nThisID
    ' set up connection, use sSQL for recordset, display that record

    "Deepiceman" <deepiceman@yahoo.com> wrote in message
    news:f07dfae.0308191256.5e22acb5@posting.google.co m...
    > Hi folks,
    > Here is what I am trying to achieve. I have a database with about 20
    > columns(fields), the first one being a unique ID. I am trying to get a
    > page which will dispaly the fields in a specific format. So far I am
    > able to do this to a certain extent. What I want to happen is that
    > when I click on a link on one page, it should use the id number of the
    > row (passed thru the url) to load a page that shows the data of that
    > row only. I know this is possible because I have seen it many times
    > but I dont know how to get the functionality.

    Kris Eiben Guest

  5. #4

    Default Re: One row per page.

    That's exactly what I am looking for. I am actually doing part of this
    but now that I have more information from you guys hopefully I will be
    able to get the rest working.
    Thanks again
    Deep


    "Kris Eiben" <eibenkthisisforspammers@yahoo.com> wrote in message news:<Oo7eYXxZDHA.2572@TK2MSFTNGP12.phx.gbl>...
    > Is this what you mean?
    >
    > page of links:
    > ' set up connection, recordset
    > do until rs.EOF
    > nThisID = rs("ID")
    > sThisName = rs("name")
    > response.write "<a href='oneRow.asp?id=" & nThisID & "'>" &
    > sThisName & "</a><br>"
    > rs.movenext
    > loop
    >
    > oneRow.asp:
    > nThisID = request.querystring("id")
    > sSQL = "Select field1, field2 from table1 where ID = " & nThisID
    > ' set up connection, use sSQL for recordset, display that record
    >
    > "Deepiceman" <deepiceman@yahoo.com> wrote in message
    > news:f07dfae.0308191256.5e22acb5@posting.google.co m...
    > > Hi folks,
    > > Here is what I am trying to achieve. I have a database with about 20
    > > columns(fields), the first one being a unique ID. I am trying to get a
    > > page which will dispaly the fields in a specific format. So far I am
    > > able to do this to a certain extent. What I want to happen is that
    > > when I click on a link on one page, it should use the id number of the
    > > row (passed thru the url) to load a page that shows the data of that
    > > row only. I know this is possible because I have seen it many times
    > > but I dont know how to get the functionality.
    Deepiceman 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