dropdownlist - selected index changed not firing in table (resolved)
Hi
I have a web forms project witha data entry form where I had drill downs on 3 dropdowns depending on what was selected before. This was code in the SelectedIndexCHanged event. All worked fine. Put these into a table cell and the event no longer fires ?? Anyone has any ideas I would appreciate it
regards
BH
Last edited by briancps; Oct 4th, 2003 at 01:21 AM.
Thanks for the speeedy reply-yes all the code is between the tags. I'm not an HTML expert but I worked with a web designer to put the logos and css in and he used a html table to format it. worked fine before this. If I do a test form with a VB Web Form table, this seems to work but pabably another days work. Any help would be appreciated. Postback is set to true on the three dropdowns I am trying to manipulate
Without opening your webform its obvious that your code should not work as i told you in the previos post. The events dont know what to handle. The code shoud be like this:
VB Code:
Private Sub cboRegion_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) [b]Handles cboRegion.SelectedIndexChanged[/b]
LoadRegionAreas()
End Sub
Private Sub cboArea_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) [b]Handles cboArea.SelectedIndexChanged[/b]
LoadSuburbs()
End Sub
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
I had cut and pasted the dropdowns from the form which were there before we put the table in. I noticed that the selecteditemevent for these events was no longer in bold??
I deleted the existing event code and put itno the new events created - works fine ??
i dunno - thnaks for your responses
I just make it bold for you to notice that the statments are missing. Remember when you cut the controls VS removes that from all the events it fired, as if you deleted the control. So its better to move your control not cut and paste it. Ofcourse there may be an option in VS to avoid this, but i have not checked it.
To mark this post as resolved edit the first post and change the title.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979