Hello List!
I have an ASP page w/ a checkbox on it for showing 'valid exceptions'....problem is, I'm not sure how to refresh the page after the checkbox is checked (if it is checked, show the records w/ valid exceptions, otherwise, don't show them).... There's no buttons on the page, just a report of the records....I'm thinking maybe a hidden submit button and then implementing 'onclick' somehow, but not sure how to do this or if it's the right solution...
Here's the main code that I'm working with:
Code for checkbox:
SQL for the select:
So, I'm missing how to re-submit/refresh the page once the "showValidExceptions" checkbox is checked to show these records as well.....
Any help, information, expertise you can provide would be greatly appreciated!
-jiggyg
I have an ASP page w/ a checkbox on it for showing 'valid exceptions'....problem is, I'm not sure how to refresh the page after the checkbox is checked (if it is checked, show the records w/ valid exceptions, otherwise, don't show them).... There's no buttons on the page, just a report of the records....I'm thinking maybe a hidden submit button and then implementing 'onclick' somehow, but not sure how to do this or if it's the right solution...
Here's the main code that I'm working with:
Code for checkbox:
Code:
<tr>
<th>
<br><input type="checkbox" name="showValidExceptions" value="1"<%if request("showValidException") = "YES" then Response.Write " checked" end if%>>Show Valid Exceptions</th>
</tr>
SQL for the select:
Code:
sql = "SELECT * from [MasterDetails].dbo.getInvalidBmkAssignments(" & Session("CurrentClientID") &") "
if Request("showValidExceptions") = "" then
sql = sql & "WHERE validException = 'NO' "
end if
sql = sql & "UNION "
sql = sql & "( SELECT * from [MasterDetails].dbo.getUNKNOWNBmkAssignments(" & Session("CurrentClientID") &") "
if Request("showValideExceptions") = "" then
sql = sql & "WHERE validException = 'NO')"
end if
So, I'm missing how to re-submit/refresh the page once the "showValidExceptions" checkbox is checked to show these records as well.....
Any help, information, expertise you can provide would be greatly appreciated!
-jiggyg