OK,
I have a stored procedure entering data, I am then selecting the SCOPE_IDENTITY to get the id of the record, in my code behind I have this code which, in theory, will execute the SP and return the ID, problem is Im getting a reference not set to an instance of an object error. The code is...