Transferring DropDownList values from one page to the next

前端 未结 3 480
梦如初夏
梦如初夏 2021-01-28 12:47

I have 2 pages, both with 3 similar DropDownLists. The first DropDownList needs to be populated before selecting the second, and the second before the third (which then populate

3条回答
  •  礼貌的吻别
    2021-01-28 13:30

    There is a way:

    1. pass selections to the second page either via Session or Query String
    2. populate first dropdown
    3. select appropriate item
    4. repeat 2-3 for the rest of dropdowns

    If you're looking for a magic solution that just "does that", I don't think this is possible.

    p.s. You might rethink your design (if this is an option) and have the grid on the first page; bind the grid when user selects a value from the last dropdown (make sure you have AutoPostback set to True on your last dropdown in order to trigger the final postback)

提交回复
热议问题