Ask a Question related to ASP.NET General, Design and Development.
-
C #1
Setting a checkbox based on a value in a DB
Hi,
Based on a flag in my database table I want to make a
server side checkbox checked.
How can I dynamically do this through code?
Thanks,
C
C Guest
-
Delete mulitple records from list based on checkbox?
Hi - using ASP/ACCESS/VBscript Need an good and not expesive extension for making a page where I can delete multiple records from a list based on... -
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... -
Setting cookie based on field being filled?
I am trying to set a cookie based on if a user entered a email address on a form. I was thinking that either: <cfif #form.Email# NEQ null> or... -
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... -
Capturing checked event for Template based checkbox.
Getting to grips with the datagrid better than I thought, however I've hit another problem which hopefully someone will be able to help (again.) ... -
alien2_51 #2
Re: Setting a checkbox based on a value in a DB
Not sure what your looking for.....
If your using data binding with a datagrid...
in a windows application this is automatic, you have to do nothing...
in a web app you get "True" or "False" in the grid, you have to use a
TemplateColumn in combination with ItemCreated event to set the checked
proerty of the check box control to the value coming from the database.
If your not using databinding
what are you using......?
datareader..?
dataset..?
datatable..?
xml...?
"C" <c@nospam.com> wrote in message
news:031701c35ddc$5984f5a0$a101280a@phx.gbl...> Hi,
>
> Based on a flag in my database table I want to make a
> server side checkbox checked.
>
> How can I dynamically do this through code?
>
> Thanks,
> C
alien2_51 Guest
-
MS News \(MS ILM\) #3
Re: Setting a checkbox based on a value in a DB
mycheckbox.Checked = true or false depending on the value you get form you
database
"C" <c@nospam.com> wrote in message
news:031701c35ddc$5984f5a0$a101280a@phx.gbl...> Hi,
>
> Based on a flag in my database table I want to make a
> server side checkbox checked.
>
> How can I dynamically do this through code?
>
> Thanks,
> C
MS News \(MS ILM\) Guest



Reply With Quote

