You are on page 1of 1

Protected Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Dim cn As New SqlConnection cn.ConnectionString = SqlDataSource1.

connectionstring() Dim cmd As New SqlCommand If DropDownList1.DataValueField = ("SELECT clientes (idclientes)") Then GridView1. Dim cant As Integer Using (cn) cn.Open() cant = cmd.ExecuteNonQuery End Using End If End Sub--

You might also like