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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Help with DateTimePicker

Help with DateTimePicker

Scheduled Pinned Locked Moved ASP.NET
helpcsharpdata-structuresdebuggingtutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Graphfixz
    wrote on last edited by
    #1

    Hi Guys and Gals, I can't seem to make the DateTimePicker Web Control work for me. I am trying to incorporate it into the IBS C# Portal. Does anybody know how to do this? Currently I am getting this error: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Thanks in advance!:confused:

    D 1 Reply Last reply
    0
    • G Graphfixz

      Hi Guys and Gals, I can't seem to make the DateTimePicker Web Control work for me. I am trying to incorporate it into the IBS C# Portal. Does anybody know how to do this? Currently I am getting this error: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Thanks in advance!:confused:

      D Offline
      D Offline
      David Flores
      wrote on last edited by
      #2

      It sounds like you are trying to use an object before creating. For example you have something like this

      Dim x As Object
      x.SomeFunction 'produces error

      You should have something like this

      Dim x As New Object
      x.SomeFunction

      or

      Dim x As Object
      x = New Object
      x.SomeFunction

      Hope this helps.

      G 1 Reply Last reply
      0
      • D David Flores

        It sounds like you are trying to use an object before creating. For example you have something like this

        Dim x As Object
        x.SomeFunction 'produces error

        You should have something like this

        Dim x As New Object
        x.SomeFunction

        or

        Dim x As Object
        x = New Object
        x.SomeFunction

        Hope this helps.

        G Offline
        G Offline
        Graphfixz
        wrote on last edited by
        #3

        well I don't know. This is the error I am getting: Line 9: Line 10: Line 11:

        Line 12: Line 13: where Line 11 is causing the error. :confused::mad::sigh::((

        D 1 Reply Last reply
        0
        • G Graphfixz

          well I don't know. This is the error I am getting: Line 9: Line 10: Line 11:

          Line 12: Line 13: where Line 11 is causing the error. :confused::mad::sigh::((

          D Offline
          D Offline
          David Flores
          wrote on last edited by
          #4

          Is that the source from your aspx file? or the source from right-clicking in the browser and selecting "view source"? It doesn't looking like line 11 is the real problem. Run the program again, do a view source from the browser and see what line 11 is there. Also, you could a put a break point in and traverse line by line to see where it blows up. Hope that helps

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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