Hello Everyone,
I am creating an application where up to 50 people could register for an event. On this part of the application, I have a dropdown menu that contains values from 1 to 50 and autopostbacks to create panels with controls inside equal to the number selected in the dropdown menu. The code for that is below:
Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
'SQL and Database Info
Dim objConnection As New SqlConnection(ConfigurationManager.AppSettings("ConnectionInfo"))
Dim SQLGender As String = "SELECT Gender FROM TblGender ORDER BY Gender"
Dim SQLCompetition As String = "SELECT Competition FROM TblCompetition ORDER BY Competition"
Dim myDataReader As SqlDataReader
Dim myDataReader2 As SqlDataReader
Dim objCommand ...
Go to the complete details ...