|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help w/ ObjectDataSourceI'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 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 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 |
|||||||||||||||||||||||