Any thoughts??? The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Asked by:. Archived Forums. Getting Started with ASP. NET question on a topic that's not covered by one of the other more specific forums - ask it here.
Sign in to vote. My VB code is : e. User posted In case anyone's still having problems with this, I read somewhere on the web that you can use DBNull. Very useful for SQL parameters where you have to pass a value. I tried it in one of my pages and it worked fine.
Thursday, December 4, PM. User posted DateTime is a value type. You can't put null in a value type. If what you want to do is send a null value in a a database, send DbNull. Value instead of a DateTime object to the Parameter object. User posted Use System. Thursday, December 11, AM. User posted Yes, you can assign null value to DateTime object. How to check your DB value with this way?
ToDateTime row["yourColumn"] ; Hope it helps. User posted That is another advantage of C from VB. In VB. NET: 'You can only write this. Happy programming! User posted Make sense, after reading the following on another blog: Nullable value types denoted by a question mark, e.
Thursday, December 11, PM. User posted Hi You can assing null value by using: Date1. I hope it gives you additional info. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it.
Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. Assigning null value to datetime object. How do I assign values to label dynamically in C. How to assign null value to class object of type datetime. Novice - C assignment help -. Want to pass null value for Datetime. How to assign same json property name, one having value and other being null?
Function not assigning value properly. Notice: trying to access array offset on value of type null. How to assign a null to 'var' datatype? Null reference exception error for the array of custom datetime class. Layout: fixed fluid. Web02 2. Strip HTML. Encode HTML.
Paste as-is.
0コメント