This is a discussion on Storing NULL value to other than string datatype within the ASP and ASP.NET Programming forums, part of the Web Development category; In ASP.NET, It is possible to store NULL values for data types other than string.ASP.NET have null ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| In ASP.NET, It is possible to store NULL values for data types other than string.ASP.NET have null allowable integer, datetime, long, short, byte, float, double data types. The declaration of these data types slightly differ from the normal data types declaration. Just add a question mark with the datatype name.below you can see the samples. Normal Declaration int a = 0; Datetime cdate; long b=0; Declaration for Null Allowable int? a = 0; Datetime? cdate; long? b=0; |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Datetime datatype formate | Kirubhananth | ASP and ASP.NET Programming | 3 | 03-10-2008 03:23 AM |
| Advantages of storing sessions in database | vigneshgets | PHP Programming | 2 | 02-13-2008 07:41 AM |
| What is the result of comparing NULL with NULL? | vijayanand | Database Support | 1 | 09-20-2007 07:07 AM |
| NULL Pointer and a NULL Macro | vigneshgets | C and C++ Programming | 3 | 09-08-2007 03:24 AM |
| NULL character within a string | vigneshgets | C# Programming | 1 | 08-01-2007 05:07 AM |