Suppose if you want to Insert  blank value in database when field is integer type
if (roll.Text == "")
                   {
                       roll.Text = "(NULL)";
                 
                   }
insert into table values('"+roll.Text+"')
Thoughts on C#, .NET, programming, software development and productivity. Tips and tricks to solve various programming problems.
Subscribe to:
Post Comments
                                      (
                                      Atom
                                      )
                                    
No comments :
Post a Comment