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?
Loading
r pPosted Sep 4, 2008, 5:52 AM
Albertto LiePosted Sep 4, 2008, 5:26 AM
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