Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null for a string
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Null for a string
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01398411
Message ID:
01398411
Views:
120
Hi everybody,

How can I fix this code
public InventoryDS.ItemsDataTable Find(string ItemNo, string description)  
        {
            if (ItemNo.Equals(string.Empty))
            { ItemNo = DBNull.Value; } // Intellisense doesn't like it
Both parameters set to allow DbNull.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform