|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
checkbox bind with 0 = checked?I have a bound-checkbox. The database value = 0 but the checkbox got
checked? Why is that? What value should be in the database for being not checked then? tia [VB.NET]
0 = False -1 (or any non-zero value = True) If you are getting a checked checkbox, I would look into the possibility that the actual field data you are using to control it isn't what you think it is. Show quoteHide quote "Maarten" <Pat***@mayo.com> wrote in message news:e6xdjbQVGHA.4248@TK2MSFTNGP10.phx.gbl... >I have a bound-checkbox. The database value = 0 but the checkbox got >checked? > Why is that? > What value should be in the database for being not checked then? > > > tia > How can I check that the best then?
(besides running the stored procedure in SQL server and see that 0 is returned for that (whole)column?) Can I debug/see what the databinding presents as value? thank you Show quoteHide quote "Scott M." <s-mar@nospam.nospam> wrote in message news:OE6028QVGHA.5044@TK2MSFTNGP09.phx.gbl... > [VB.NET] > > 0 = False > -1 (or any non-zero value = True) > > If you are getting a checked checkbox, I would look into the possibility > that the actual field data you are using to control it isn't what you > think it is. > > > "Maarten" <Pat***@mayo.com> wrote in message > news:e6xdjbQVGHA.4248@TK2MSFTNGP10.phx.gbl... >>I have a bound-checkbox. The database value = 0 but the checkbox got >>checked? >> Why is that? >> What value should be in the database for being not checked then? >> >> >> tia >> > > Run the stored procedure. And whole column? Is this a grid with a
checkbox column? Set breakpoints on ItemDataBind, ItemCreated, etc. I am sorry!!
You where right the first time. Stupid me!! looking at the wrong column (SQL) the last couple of hours!!! Again sorry for wasting your time. Problem fixed. Many thanks for your effort Regards, <sirfun***@hotmail.com> wrote in message Show quoteHide quote news:1143846097.028531.46970@i39g2000cwa.googlegroups.com... > Run the stored procedure. And whole column? Is this a grid with a > checkbox column? > > Set breakpoints on ItemDataBind, ItemCreated, etc. >
Problem with User Control and unset references to controls within
error in adding user controls at runtime Fitting a table inside an ASP Panel error using .NET CrystalReportViewer (.NET 1.1 VS.NET 2003) Gridview PostBack Problems Re: Binding two fields in the DataNavigateUrlFormatString GridView Height WebControl rendering in frontpage 2003 - Migrating from Visual Studio 2003 to 2005 GridView XmlDataSource InputAttributes in RowCreated (gridview) |
|||||||||||||||||||||||