G
Guest
Hi
I am trying to run a sproc that retrieves a single booking number from my database
However i keep getting the following message and the booking No is not displayed
Can anyone tell me how to fix this?
system.InvalidCastExceptio
Specified cast is not valid
here is my code i used
Dim cmdNewBookingNo As New SqlCommand("SPSelMaxBookingNo+1", Cn
cmdNewBookingNo.CommandType = CommandType.StoredProcedur
Tr
Cn.Open(
Dim reader As SqlDataReade
reader = cmdNewBookingNo.ExecuteReader(
While reader.Rea
Dim BookingNo As SqlString = reader.GetSqlString(0
lblBookingNo.Text = BookingNo.ToStrin
End Whil
Catch ex As Exceptio
MsgBox(ex.Message, , ex.GetType.ToString
Finall
Cn.Close(
End Try
I am trying to run a sproc that retrieves a single booking number from my database
However i keep getting the following message and the booking No is not displayed
Can anyone tell me how to fix this?
system.InvalidCastExceptio
Specified cast is not valid
here is my code i used
Dim cmdNewBookingNo As New SqlCommand("SPSelMaxBookingNo+1", Cn
cmdNewBookingNo.CommandType = CommandType.StoredProcedur
Tr
Cn.Open(
Dim reader As SqlDataReade
reader = cmdNewBookingNo.ExecuteReader(
While reader.Rea
Dim BookingNo As SqlString = reader.GetSqlString(0
lblBookingNo.Text = BookingNo.ToStrin
End Whil
Catch ex As Exceptio
MsgBox(ex.Message, , ex.GetType.ToString
Finall
Cn.Close(
End Try