Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How do you databind a CheckBox?

Reply
Thread Tools

How do you databind a CheckBox?

 
 
aualias
Guest
Posts: n/a
 
      06-15-2004
Steven,

Sorry I didn't get a chance to test this sooner. It does work fine.

I'm appalled at my own reliance on Intellisense. When the Text property
didn't pop up, I just assumed that it could not be assigned to. And I used
to write code in assembler...

Thanks.

AU


"Steven Cheng[MSFT]" <v-> wrote in message
news:...
> Hi David,
>
> Have you had a chance to check out the suggestions in my last reply or

have
> you got any further ideas on this issue? If you have anything unclear or

if
> there're anything else we can help, please feel free to post here. Thanks.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>



 
Reply With Quote
 
 
 
 
npclaudiu npclaudiu is offline
Junior Member
Join Date: Apr 2011
Posts: 1
 
      04-29-2011
I managed to bind this way:


// Test.aspx:
<asp:CheckBox ID="chkExclusive" runat="server" Checked='<%# Bind("ExclusiveGrouping") %>' />

// SQL for DataSource:
select ..., convert(bit, case when lgt.LGT_EXLUSIVE_GROUPING = 0 then 0 else 1 end) as ExclusiveGrouping from SomeTable where ...


Hope this helps...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When do you call DataGrid.DataBind() Water Cooler v2 ASP .Net Datagrid Control 9 06-13-2006 09:02 PM
Can you still databind to a single object in ASP .Net 2.0? =?Utf-8?B?Sm9obiBCYWlsZXk=?= ASP .Net 3 03-29-2006 04:41 PM
Can you databind a textbox to a datasource? Charley Jones ASP .Net Web Controls 0 08-03-2005 10:16 PM
BUG in DataBind? After .DataBind there are more DataGrid Items than DataSet Rows! Michael ASP .Net Datagrid Control 0 12-29-2003 07:47 PM
ATTN Programmers: WE pay YOU $1.00 if you let us find you a job. jdg Doris Cox Perl 0 12-02-2003 11:07 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57