Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Nathon Jones #1
matching a querystring to a checkbox field?
Hi,
(ASP/VBScript, Access, DWMX)
I have a page that has a set of links
<a href="resultspage.asp?residential=1">Residential</a>
<a href="resultspage.asp?commercial=1">Commercial</a>
These links point to an ASP results page, which has a recordset that
contains data from a table in Access that has checkboxes for Residential,
Commerical, Lease etc. I'm having trouble establishing what my SELECT
statement should be on the results page...
SELECT *
FROM datatable
WHERE residential = varResidential OR commercial = varCommercial
varResidential 0 Request.QueryString("residential")
varCommercial 0 Request.QueryString("commercial")
Problem is, when I click one of the links, it is showing me both Residential
and Commercial? I had assumed that, if I only passed 1 variable through the
querystring, it would assume that all other values would be 0 (Default
Value), and therefore would not show them?
I know I'm making a mountain out of a mole hill here, so what is the best
way to do this?
Thanks, in advance, for any help offered.
Regards
Nath.
Nathon Jones Guest
-
Disable checkbox when field value = null
Hi, I try to disable /hide datagrid checkbox when the value of the field is null, I have try to put some code in ItemDataBound to invisible... -
Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked.
I am trying to update the database field when the checkbox is clicked. I am trying to modified the following solution but.. got stuck on the... -
Show Field based on Checkbox
ASP/ACCESS I have a table that contains user data (e.g. username, password, email, etc.) along with some checkboxes that signify whether or not a... -
Updating an Access DB Yes/No field with a Checkbox value
I have a DataGrid that is configured to use the Edit/Update/Cancel concept correctly. My grid shows values from 5 database fields. I only need to... -
Checking a checkbox based upon a table field
I have a template column in my grid that displays a checkbox. I would like to have the box checked if a field in the table that the grid is based... -
darrel #2
Re: matching a querystring to a checkbox field?
> SELECT *
Residential> FROM datatable
> WHERE residential = varResidential OR commercial = varCommercial
>
> Problem is, when I click one of the links, it is showing me bothWhat I usually do is add a response.write to my page:> and Commercial?
response.write (myQueryString)
and then run the page to see exactly what is being passed to the database.
-Darrel
darrel Guest



Reply With Quote

