Specified cast is not valid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified cast is not valid.
Source Error:
Line 248:// pladser = int.Parse(tmpRead["AntalPersoner"].ToString()); Line 249:// int pladser = (int)tmpRead[0]; Line 250: int pladser = (int)dbCmd.ExecuteScalar(); Line 251:/* Line 252: query="SELECT DISTINCT MaxPladser from [Rejse] where Rejsenavn = '"+enRejse.RejseNavn+"'";
Ser fjollet ud men det virker - af en eller anden grund returneres SUM af en integer kolonne som double.
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.