I'm having a very strange issue where a chunk of code that runs fine everywhere else fails only on machine that are Mac (Leopard) running safari or Firefox. The code is below - it's completely ordinary. Any ideas would be appreciated. Thanks! BTW, It fails at this line - Int32 familyId = myDataReader.GetInt32(0);
I understand I'm not checking for a return but the question is why only in this situation does it not return a value?
sender, DetailsViewInsertedEventArgs e)
connectionString = ConfigurationManager.ConnectionStrings[
//prepare sql statements
"SELECT family_id FROM family WHERE user_name = @user"
, SqlDbType.VarChar, 30);
].Value = Profile.UserName;
myDataReader = myCommand.ExecuteReader();
Int32 familyId = myDataReader.GetInt32(0);
] = familyId;