Multiview and databind

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bie2

    Multiview and databind

    Hi,

    I'm using MultiView in the framework 2.0, and I need some info on how
    it works with databinding with some web controls.

    Here a simple situation: There is 2 views

    The setup is as follow:
    View 1: one DropDownList : ddl1
    one objectdatasourc e : ods1
    ddl1 has is DataSourceId set to ods1 in the aspx

    View 2 same as above but different name:
    one DropDownList : ddl2
    one objectdatasourc e : ods2
    ddl2 has is DataSourceId set to ods2 in the aspx

    On the top of the page have two button btn1 -called to show view 1
    btn2 ->
    called to show view 2

    When the page is loaded it's showing view 1 as default.

    If I click on btn2 when doing the postback will ddl1 bind to the ods1
    even if it's not shown? Or only the item shown are binded?

    Thanks,
    Frank
Working...