Re: can this be done?

Tech-Archive recommends: Fix windows errors by optimizing your registry



"CsharpGuy" <CsharpGuy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0B33DA23-1EAD-4731-B2F2-C8F9E4E8F79B@xxxxxxxxxxxxxxxx
on my web form I have a checkbox for the user to check or not. How can I
pass
the value of the checkbox to my business layer to execute the correct SQL
statement?
I need to run seperate sql queries based on if the checkbox is checked on
my
web form or not. So is it possible to pass the checkbox value to my
datalayer
class?

I'm not exactly certain what your problem is... An <asp:CheckBox> control
has a boolean Checked property - interrogate that when the page is posted
back, and branch your code accordingly.


.