I want to make a selection list by means of a DropDownList but it does not generate anything, I do not know if I have any errors
Protected Sub DropDownList4_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DropDownList4.SelectedIndexChanged
Dim conexion As New Conexion
Dim conn As SqlConnection = conexion.conectar()
Dim cmd As New SqlCommand("SELECT (tipo_doc) FROM TipoDocumento", conn)
cmd.CommandType = CommandType.Text
cmd.Connection = conn
conn.Open()
DropDownList4.DataSource = cmd.ExecuteReader()
DropDownList4.DataTextField = "tipo_doc"
DropDownList4.DataBind()
conn.Close()
End Sub