ttkalec1 Posted June 20, 2008 Posted June 20, 2008 I have this situation. I wrote some code and it works just fine when I run it locally on my Visual Studio server, but when I send it to my web site, it doesn't work. The code looks like this: Protected Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ListBox1.SelectedIndexChanged ListBox2.Items.Clear() If ListBox1.SelectedItem.Text = "ab" Then ListBox2.Items.Add("aaaabbb") ListBox2.Items.Add("aaacccc") ListBox2.Items.Add("aaadddd") End If End Sub It's pretty simple. it populates a second listbox with some values when I click on an item in listbox1. AutoPostBack is set to True on my listboxes and I have enabled ViewStates for my listboxes. ListBox1 comes with predefined items, but when I click on of that items nothing happens if I run it on my website. What could be the problem? Quote
ttkalec1 Posted June 21, 2008 Author Posted June 21, 2008 I figured out what was the cause of my problem. I haven't properly build my application before deploying it to my a website. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.