Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting DataGrid's Datasource from another page

Status
Not open for further replies.

xtremeLogic

Programmer
Dec 19, 2003
53
CA
Hi,

I have a page that is split into two frames: top and bottom. The top page is a search parameters page and the bottom is the results page; which holds the datagrid. The search page sends the parameters to a stored procedure. I would like to update the datasource of the datagrid based on the results of the stored procedure. I have tried referencing the datagrid explictly based on its class name of the codebehind file but I am unsuccessful. My stored procedure has been tested and it works. Any ideas how I can update the datagrid's datasource from the other page?
Thanks.
 
I don't know what you mean by datasource. If you mean a DataSet, I would put it on the page with the grid. I would update the page with the grid based on the criteria of the selection page. You can pass in querystring for your stored procedure parameters, and use those to run the stored procedure from the page with the grid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top