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? or do you have any other suggestion?
Loading
ArshadPosted Sep 11, 2008, 2:49 AM
http://www.vbdotnetheaven.com/UploadFile/Santhi.M/PassingValuesfrmUCtoASPX11102005014550AM/PassingValuesfrmUCtoASPX.aspx,
Regards
Blocked AccountPosted Sep 8, 2008, 4:47 AM
Hi,
You can do this by another way. the work u r doing in the search.ascx, do that work in the result.aspx and bind the datagrid with that datasource which is return from the query. For that u have to pass the search values to the result.aspx page through querystring.
OR
Store the objResult in the session which is return in the search.ascx. and bind that datagrid with this session variable.
Happy Coding!!