whats wrong

Results 1 to 2 of 2

Thread: whats wrong

  1. #1
    Join Date
    Dec 1969

    Default whats wrong

    I have this list box:<BR><BR>&#060;asp:CheckBoxList ID="Nonwork" Runat="server"&#062;<BR> &#060;asp:listitem ID="NonworkCheckbox" Runat="server" /&#062;<BR>&#060;/asp:CheckBoxList&#062;<BR><BR>and here is my update code:<BR><BR>if (Nonwork.Items[0].Selected)<BR>{<BR>objNewRow[0]["type"] = "N";<BR>}<BR>else<BR>{<BR>objNewRow[0]["type"] = "W";<BR>}<BR><BR>This works if they check the box but if they dont check the box the "W" is not put into the database.<BR><BR>Any help

  2. #2
    Join Date
    Dec 1969

    Default step through it

    you dont show your database update code, so we cant tell from here if that is where the problem is<BR><BR>it looks like you are using c#<BR><BR>i would response.write the value of your "type" row after you try to assign it the value of "W". if that works, then step through each phase of the script&#039;s execution until you find the error

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts