473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Help w/ ObjectDataSource

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

Sep 8 '06 #1
2 1072
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

fi********@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
Sep 8 '06 #2
i set both and it now seems to work.

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

fi********@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
Sep 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ole M | last post by:
I'm having some trouble using the ObjectDataSource in ASP.NET 2.0. I have a wrapper that contains the static methods for Select and Update. The Update-method takes the business object as...
4
by: Anne Catterick | last post by:
Hi, I have an british ASP.Net 2.0 application which is doing what (should) be very simple. But I am having issues. On my page I have a GridView as follows (some tags excluded for easy...
2
by: Damon | last post by:
Help! Need this fixed ASAP. I have a GridView/DetailsView master/details form set up, with both bound to separate ObjectDataSource objects. Both the GridView and the DetailsView have a...
0
by: Northern | last post by:
Hello, I have some trouble to declare and instantiate dynamically an ObjectDataSource in the codebehind file. The idea is to bind the objectdatasource to a gridview and have automate sorting and...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
1
by: Barry L. Camp | last post by:
Hi all, Wondering if someone can help with a nagging problem I am having using a GridView and an ObjectDataSource. I have a simple situation where I am trying to delete a row from a table, but...
5
by: Randy Smith | last post by:
Hi ALL, I wonder if anyone has been using n-tier to bind to a GridView control by using the ObjectDataSource. This is our first OOP web application, and we have no tables. Right now we are...
1
by: =?Utf-8?B?cm9zczYxMw==?= | last post by:
I really hope this is not a case of "this silly thing will never work".....lots of time invested in troubleshooting this already. I have created a standard ASP.NET web form (.aspx) with several...
0
by: GMartin | last post by:
I have a pop-up form with a three columned Grid that has checkboxes in a Template Column in the first/left-most column. (The form is to allow users to select "Members" of a group, where they check...
4
by: Jonathan Wood | last post by:
Greetings, I have a GridView control. For a couple of reasons, I ended up with a TemplateField to contain my Edit and Delete links, something like this: <asp:TemplateField ShowHeader="False">...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.