|
-
Jul 1st, 2002, 11:57 AM
#1
Thread Starter
Junior Member
CheckBox
Forgive if this is a simple one but I'm very new to C#!
Basically, I'm doing a bit of In Place Editing which is fine except for a checbox field...
<asp:TemplateColumn HeaderText="Current Pay">
<ItemTemplate>
<asp:LABEL TEXT='<%# Convert.ToString(DataBinder.Eval(Container.DataItem, "currentPay")) %>' RUNAT="SERVER" ID="lblCurrentPay" />
</ItemTemplate>
<EditItemTemplate>
<asp:CheckBox RUNAT=SERVER ID=chkCurrentPay CHECKED=TRUE />
</EditItemTemplate>
</asp:TemplateColumn>
I can't seem to determine whether or not the control is checked. I've tried chkCurrentPay.Checked but I get "Value null was found where an instance of an object was required."
Any ideas?
TIA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|