Hello,
I have a listbox, a textbox, and a button. The button populates the textbox with the selected item & value of the listbox. As below:
Protected Sub GetVariables_Click(ByVal sender As Object, ByVal e As EventArgs) Handles GetVariables.Click
Me.txtLetter.Text = lstNames.SelectedItem.ToString & lstNames.SelectedValue.ToString
End Sub
The problem I have, is that when doing this it reloads the page each time. Any way around this?
Thanks,
Jason
I have a listbox, a textbox, and a button. The button populates the textbox with the selected item & value of the listbox. As below:
Protected Sub GetVariables_Click(ByVal sender As Object, ByVal e As EventArgs) Handles GetVariables.Click
Me.txtLetter.Text = lstNames.SelectedItem.ToString & lstNames.SelectedValue.ToString
End Sub
The problem I have, is that when doing this it reloads the page each time. Any way around this?
Thanks,
Jason