Help w/ ObjectDataSource

  • Thread starter Thread starter fingermark
  • Start date Start date
F

fingermark

I'm using 3 ObjectDataSources. ObjectDataSource2 depends on
DropDownList1.SelectedValue and ObjectDataSource3 depends on
DropDownList2.SelectedValue. I have the gridview and details view in
their own view (multiview). When I select DropDownList1 and then
DropDownList2, the GridView will populate correctly. When I click on
insert into details view that inserts into ObjectDataSource (going to
the other view), it seems like ObjectDataSource2 loses its select
parameter vaule (which is the ControlParameter
ControlID="DropDownList2").

Any ideas on why ObjectDataSource2 seems to reset or lose its Select
Control Parameter on the new view?

Thanks
 
ok, it seems that if I do GridView1.DataBind() on the dropdownlist
databound event it works in the gridview, but not the detailsview. but
if i don't set gridview.databind() it works in the details view, but
not the gridview.

i'm very confused
 
i set both and it now seems to work.

sorry
ok, it seems that if I do GridView1.DataBind() on the dropdownlist
databound event it works in the gridview, but not the detailsview. but
if i don't set gridview.databind() it works in the details view, but
not the gridview.

i'm very confused
 
Back
Top