Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

ltmnm

@ltmnm
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • boolean variable as null
    L ltmnm

    right, that's why I tried this: if(chkPU.Enabled) vudr.INCL_PERS_USE_IND = chkPU.Checked; else vudr.INCL_PERS_USE_IND = null; problem is that this: vudr.INCL_PERS_USE_IND is expecting a boolean value. I wanted to see if there was an easy way to make this happen to assign any other value other than true or false. I guess I will have to start re-coding everything to use a diff value.

    C# question

  • boolean variable as null
    L ltmnm

    Sorry, I should be more clear. The drop down boxes are just answers that go into the database. the code also checks to see if the check boxes are checked and then stores that in the database as well. It returns false when the check box is not checked even if the check box is not enabled. The data that is in the table is then queried and used for reporting services. In those reports the user wants to see yes when the check box is checked and no when it is not. They also want to see just a blank for when the check box was not enabled. So, I am just trying to see if there is a way to make a boolean value equal true, false and anything else that could represent the check box not being enabled. Hope that helps clear things up a little. thank you for all your help.

    C# question

  • boolean variable as null
    L ltmnm

    Here is part of the code that I am talking about: CheckBox chkPU = (CheckBox)dgi.FindControl(c_grd_ctrl_id_chkPU); CheckBox chkCP = (CheckBox)dgi.FindControl(c_grd_ctrl_id_chkCP); . . . . vudr.INCL_PERS_USE_IND = chkPU.Checked; vudr.COMN_CRY_PSGR_IND = chkCP.Checked;

    C# question

  • boolean variable as null
    L ltmnm

    The problem is that the application is already built to use boolean values. The user has a section where they chose an option from two drop down boxes. Based on what they select there are two check boxes that are either enabled or not. The user wants to see the results of these choices in the reporting as true equal yes and false equaling no and if it is not enabled they want it to show a blank. the way that it is designed right now is it uses a findcontrol on the check boxes, which returns true or false no matter if it is enabled or not. It then takes that true/false and puts it into the database table. I first thought to just put the assignment into an if statement checking to see if it is enabled. If not then I would not assign anything to that value in the table. This will work for the first time creation of this but the user can go back later and change their answers and this will not change the value that is in the table.

    C# question

  • boolean variable as null
    L ltmnm

    Hello all, I am working on debugging a web application. I need to make a boolean value equal to true, false or null. Is it possible to make it null?

    C# question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups