-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Z?�n
Message 6 in Discussion




Try 
using the value 

comm.CommandType = 
CommandType.StoredProcedure;
comm.Parameters.Add("@parameter1",System.Data.SqlTypes.SqlDouble.Null);

Please 
check whether The database column  allows nulls.. 

 Regards

Sajay

 

 -----Original Message-----
From: 
BalajiKrishnan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 
September 25, 2003 3:32 PM
To: BDOTNET
Subject: passing null 
value to a SP - Float Parameter



  
    
      
      New Message on BDOTNET
    
      

  passing 
    null value to a SP - Float Parameter


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 1 in 
                Discussion 
      
        
          
            
            
              From: BalajiKrishnan 
            
              

                Dear Friends,
                 
                I am in need of this
                 
                How can I pass null value to a SQL Stored procedure 
                parameter
                the parameter is of type float
                 
                i used DBNULL.Value which is not working
                 
                pls help
                 
                code : 
                 
                
                
If (Trim(CType(DataGrid1.Items.Item(I).FindControl("TotalListCos"), 
                Label).Text)) = "" Then
                
TotalListCos.Value = DBNull.Value
                
Else
                
TotalListCos.Value = Trim(CType(DataGrid1.Items.Item(I).FindControl("TotalListCos"), 
                Label).Text)
                
End 
                If
                
thanks 
                
Balaji
View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to