Server Error in '/' Application.
--------------------------------------------------------------------------------
Arithmetic operation resulted in an overflow.
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.OverflowException: Arithmetic operation resulted in an overflow.
Source Error:
Line 17: Dim sql As String = "select ref_imgS,ref_title from cak_Reference"
Line 18: Da.SelectCommand = New MySqlCommand(sql, Con)
Line 19: Da.Fill(DS, "std")
Line 20: ''countCon = DS.Tables("std").Rows.Count()
Line 21: GV_Ref.DataSource = DS.Tables("std")
Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim StrCon = "Server=127.0.0.1;user id=CAK;password=12345678;Database=DBCAK"
Dim Con As New MySqlConnection(StrCon)
Dim Da As New MySqlDataAdapter
Dim DS As New DataSet
Dim sql As String = "select ref_imgS,ref_title from cak_Reference"
Da.SelectCommand = New MySqlCommand(sql, Con)
Da.Fill(DS, "std") 'errorบัดทัดนี้
GV_Ref.DataSource = DS.Tables("std")
GV_Ref.DataBind()
DS.Clear()
Da.Dispose()
Con.Dispose()
Dim sql2 As String = "select ProductPathImg,ProductN from cak_Product"
Da.SelectCommand = New MySqlCommand(sql2, Con)
Da.Fill(DS, "a")
''countCon = DS.Tables("std").Rows.Count()
GV_Prod.DataSource = DS.Tables("a")
GV_Prod.DataBind()
DS.Clear()
Da.Dispose()
Con.Dispose()
End Sub