Filtering by more than one column?

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

  1. #1

    Default Filtering by more than one column?

    I have a set of links that take you to the same results page but bringing up different
    data specific to the particular link clicked.

    I know how to create a detail page but this is not the same as there are multiple entries.

    I tried adding parameters to the link but every entry in the database appears on the page

    e.g . . .

    <a
    href="results.asp?<%=(rsSales.Fields.Item("state") .Value)%>=Whatever&<%=(rsSales.Fields.It
    em("category").Value)%>=Sales">Sales</a>

    also tried . . .

    results.asp?state=Whatever&category=Sales



    What should I be saying in the SQL for the recordset?


    I am only a beginner and trying to get my head around this!


    Thanks in advance





    I Need Help! Guest

  2. Similar Questions and Discussions

    1. Converting a 3 column pdf address list to a one column MS word doc
      I need to convert a 3 col pdf into a manipulable text doc. Acrobat gives me lots of ways to do this in the normal program, but it doesn't preserve...
    2. Move bound column to right of dynamic column in datagrid?
      I have a datatable that I am binding to a C# ASP.NET 1.1 web page. I also want to put an "Edit" column on the datagrid. However, whenever I use...
    3. Bound Column or Template Column (w dAdapater?) in DataGrid
      I am able to get the data using DataAdapter and the DataReader. I am more inclined to use DataAdapter because I want to update the data on the SQL...
    4. Convert an MS Access Yes/No column to a checkbox column in C# datagrid
      Currently I have a datagrid displaying the multiple columns of data (text and numerical) found in a table in MS Access. In the Access table,...
    5. how to Add different controls(textBox,DropDownList or some ) in the same column,based upon the value in the previous column (Say second Colum which contain dropdown with some values) ?
      I am new to ASP.NET. I am facing problem with datagrid. I will explain prob now. In the datagrid the first column is name in the second...
  3. #2

    Default Re: Filtering by more than one column?

    I Need Help! wrote:
    > I have a set of links that take you to the same results page but bringing up different
    > data specific to the particular link clicked.
    >
    > I know how to create a detail page but this is not the same as there are multiple entries.
    >
    > I tried adding parameters to the link but every entry in the database appears on the page
    >
    > e.g . . .
    >
    > <a
    > href="results.asp?<%=(rsSales.Fields.Item("state") .Value)%>=Whatever&<%=(rsSales.Fields.It
    > em("category").Value)%>=Sales">Sales</a>
    >
    > also tried . . .
    >
    > results.asp?state=Whatever&category=Sales
    st = Request.QueryString("state")
    cat = Request.QueryString("category")

    "SELECT field1, field2, ... FROM table WHERE state = '" & st & "' AND
    cat = '" & category & "'"

    i'm assuming your fields in the DB are named state and vategory

    HTH,

    manuel
    > What should I be saying in the SQL for the recordset?
    >
    >
    > I am only a beginner and trying to get my head around this!
    >
    >
    > Thanks in advance
    Manuel Socarras 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