Help with DateTimePicker
-
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:
-
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:
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 errorYou should have something like this
Dim x As New Object
x.SomeFunctionor
Dim x As Object
x = New Object
x.SomeFunctionHope this helps.
-
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 errorYou should have something like this
Dim x As New Object
x.SomeFunctionor
Dim x As Object
x = New Object
x.SomeFunctionHope this helps.
-
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::((
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