Home All Groups Group Topic Archive Search About

Help w/ ObjectDataSource

Author
8 Sep 2006 6:36 PM
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

Author
8 Sep 2006 7:08 PM
fingermark
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

fingerm***@gmail.com wrote:
Show quote
> 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
Author
8 Sep 2006 7:09 PM
fingermark
i set both and it now seems to work.

sorry
fingerm***@gmail.com wrote:
Show quote
> 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
>
> fingerm***@gmail.com wrote:
> > 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

AddThis Social Bookmark Button