Dim array_birth(2) As String
Mysql = "SELECT * FROM person_table p WHERE p.id_person='" & search_id & "'"
Dim cmd_per As New Mysql.Data.MySqlClient.MySqlCommand(Mysql, myConnection)
MyReader = cmd_per.ExecuteReader
MyReader.Read()
Server Error in '/ERefer' Application.
--------------------------------------------------------------------------------
Index was outside the bounds of the array.
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.IndexOutOfRangeException: Index was outside the bounds of the array.
Source Error:
Line 306: day_per.Items.Add(array_birth(0))
Line 307: month_per.Items.Clear()
Line 308: month_per.Items.Add(array_birth(1))