Ask a Question related to Dreamweaver AppDev, Design and Development.
-
I Need Help! #1
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
-
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... -
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... -
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... -
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,... -
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... -
Manuel Socarras #2
Re: Filtering by more than one column?
I Need Help! wrote:
st = Request.QueryString("state")> 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
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 advanceManuel Socarras Guest



Reply With Quote

