Last post Mar 29, 2015 07:26 AM by Bhavani.Ch
Mar 29, 2015 06:44 AM|Bhavani.Ch|LINK
Mar 29, 2015 07:15 AM|PatriceSc|LINK
It means you are trying to access a member of a null object. Where do you construct cmd ? It seems you don't even set the SQL statement (it is just in a string that seems unrelared to cmd) before trying to use it.
Something like new cmd = SqlCommand(strSqlCommand,cn); check again some sample code (for example you'll use the "using" statement to Dispose the command once done).
Mar 29, 2015 07:26 AM|Bhavani.Ch|LINK
Its working fine... Tank u