It is hard to determine from your description what exactly you are trying to do. What are you binding the datasource controls too. Is this a gridview detailsview parent child scenario where you want users to select a row in your gridview and have additional details appear in the detailsview ( or formview) control based on the gridview selectedrow? If so choose the enable selection checkbox for the gridview and set the detailsview datasource parameter to a controlparameter with the gridview as the source control (there is a quickstart showing how to do this under the learn tab of the main asp.net page). Alternatively do you wnat the 2nd datasource to fire everytime a row is created in the gridview. I.e. you need to nest a control like a gridview (or any of the other databound controls) within a gridview with the 2nd gridview being populated based on the key value of the row it is nested in? You can achieve this with the rowcreating event or even easier is to put a hidden label bound to the key in the column where the nested label resides and set the controlparameter of the nested controls datasource to the label control. Let us know which scenario you are trying to achieve or expand your description if i am not on the right track.
I have three different ObjectDataSources and three different FormViews, each on their own tab in an ASP AJAX tabset. The first ODS retrieves several details about an invoice, including a CID (customer ID) and JID (job ID). The second ODS I want to retrieve the customer's information, based on the CID value which is retrieved from the 1st ODS. The third ODS I want to retrieve the job details, based on the JID in the 1st ODS. What I think I need to be able to do is take a value out of that 1st ODS (invoice details) and assign it as a parameter in the 2nd and 3rd ODS. Does this make more sense?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment