IT Community - Software Programming, Web Development and Technical Support

Storing NULL value to other than string datatype

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-19-2007, 03:13 AM
muthuramkumar muthuramkumar is offline
D-Web Trainee
 
Join Date: Mar 2007
Posts: 10
muthuramkumar is on a distinguished road
Lightbulb Storing NULL value to other than string datatype

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;
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-19-2007, 03:17 AM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Re: Storing NULL value to other than string datatype

Oh...Great to hear...

Thanks for ur Post
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 06:54 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0