xtremeLogic
Programmer
Hi,
I would like to add a row in a listbox based on the values of two text fields on the same form. Also, I would like to be able to delete certain rows in the listbox based on selection. I created an add button and entering the following code in the _Click Handler:
but when I click on the button, it doesn't do anything the page just reloads with my various form validators becoming active. Any suggestions as to how to get this done?
Thanks.
I would like to add a row in a listbox based on the values of two text fields on the same form. Also, I would like to be able to delete certain rows in the listbox based on selection. I created an add button and entering the following code in the _Click Handler:
Code:
Dim strTo As String
strTo = ToCompany.Text + ", " + ToPerson.Text
lbToCompany.Items.Add(New ListItem(strTo))
but when I click on the button, it doesn't do anything the page just reloads with my various form validators becoming active. Any suggestions as to how to get this done?
Thanks.