In my asp.net2 site, I am giving the search option for the user (to search products) at the HEADER OF THE SITE (Header in Masterpage)
with the help of a control called Search.ascx.
The search result is returned to an object datasource called objResult(objectdatasource). Now, I want to display the result
which is returned to objResult in a datagrid which is in Result.aspx (FORM). This form is in the MAIN CONTENT area of the master page.
How can I access objResult which is in Search.ascx(CONTROL) to disply the result in the datagrid which is in Result.aspx?
Accessing OBJECTDATASOURCE content in another page
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Albertto Lie55 reputationPosted Sep 4, 2008, 1:26 AM EDT
Because its a web app, maybe u can use session to send the data as parameter
at form 1 , u can use, session["data"] = yourdata
at form 2, u can get the data with data = ( casting ) session["data"]
u need to casting it, because it will be parse as an object
r pRank #4,639 · 333 reputationPosted Sep 4, 2008, 1:52 AM EDT