Results 1 to 8 of 8

Thread: dropdownlist - selected index changed not firing in table (resolved)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2002
    Location
    Brisbane Australia
    Posts
    150

    Question 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.

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Be sure the dropdown is still in the <form></form> tags, and still associated with that event (check the handler for that event).
    '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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2002
    Location
    Brisbane Australia
    Posts
    150

    dropdown on web form

    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

    regards

    bh

  4. #4
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    I think that web desginer has messed with your webform. Even Frontpage makes a mess of Webforms sometimes. It would be nice if you send your code.
    '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

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2002
    Location
    Brisbane Australia
    Posts
    150

    dropdown list again

    Thanks I have included the .aspx file as an attachment. the only code relevant in the .vb file is as follws

    Private Sub cboRegion_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    LoadRegionAreas()
    End Sub

    Private Sub cboArea_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
    LoadSuburbs()
    End Sub

    is this ok - never posted attachemnts before

    Hope you can help BH
    Attached Files Attached Files

  6. #6
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    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:
    1. Private Sub cboRegion_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) [b]Handles cboRegion.SelectedIndexChanged[/b]
    2. LoadRegionAreas()
    3. End Sub
    4.  
    5. Private Sub cboArea_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) [b]Handles cboArea.SelectedIndexChanged[/b]
    6. LoadSuburbs()
    7. 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

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jun 2002
    Location
    Brisbane Australia
    Posts
    150

    FOund the problem

    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

    btw how do i mark this as resolved ??

    reagrds BH

  8. #8
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width