Print Page | Close Window

Checkbox problem

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9537
Printed Date: 28 March 2026 at 9:01am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Checkbox problem
Posted By: sabrin514
Subject: Checkbox problem
Date Posted: 04 February 2004 at 12:10pm

I have a  datagrid with an HTML checkbox in a template column.  I am having problems extracting the values of the checked items. I have tried using javascript, but I keep getting errors informing me that this checkbox is null or not an object.

Can anyone help? Thanks.

Here is a snippet of code.

-------------------------------------

   <asp:datagrid id="dgExistingList" runat="server" DataKeyField="PROJECT_NUMBER" AllowSorting="True" AutoGenerateColumns="False" Width="730px">
              <AlternatingItemStyle Font-Size="12px" Font-Names="Arial" BackColor="#E2F6F1"></AlternatingItemStyle>
              <ItemStyle Font-Size="12px" Font-Names="Arial"></ItemStyle>
              <HeaderStyle Font-Size="12px" Font-Names="Arial" Font-Bold="True" BackColor="#DDDDDD"></HeaderStyle>
              <Columns>
               <asp:TemplateColumn Visible="False">
                 <HeaderStyle Width="10px"></HeaderStyle>
                <HeaderTemplate>
                 &nbsp;
                </HeaderTemplate>
                <ItemTemplate>
                 <INPUT type="checkbox" id="chkProjectNumbers" runat="server" name="chkProjectNumbers" value='<%# DataBinder.Eval(Container, "DataItem.PROJECT_NUMBER") %>'>
                 </asp:HyperLink>
                </ItemTemplate>

------------------------------------------------------------ --

 

 

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net