I am trying to get returned value from stored procedure, but it always returning 0.
cmd = new SqlCommand(); cmd.CommandType = CommandType.S
if count is in your select query u should used executescaler.. like
int result=convert.toint32(cmd.executescalar());
or
int result = (Int32)cmd.ExecuteScalar();