title: VB - button click event not working properly
body: <p>In my windows app i have a button which is only visible when a user selects a certain value on a DropDownList. </p>
  
  <p>For some reason the button does not work when i click on it.</p>
  
  <p>I've enabled the button on page load and it works, however when i choose the value on the Dropdownlist the button does not work.</p>
  
  <p>Is there something im missing here? any feedback would be greatly appreciated. Thanks</p>
  
  <p>Code:</p>
  
  <pre><code>Protected Sub DropDownList4_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles DropDownList4.SelectedIndexChanged
      If DropDownList4.SelectedValue = "Yes" Then
          btnInsert.Visible = True
      Endif
  End Sub
  
  Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnInsert.Click
      Response.Redirect("Menu.aspx")
      DropDownList4.SelectedValue = "Yes"
      txtfirstName.Text = ""
      txtSurname.Text = ""
      txtJobTitle.Text = ""
      txtCountry.Text = ""
      txtWork.Text = ""
      DropDownList7.SelectedValue = ""
  End Sub
  </code></pre>