Re: Passing grid data from one page to another
- From: "Vasantha peddireddy" <Vasanthapeddireddy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 22 Aug 2005 10:50:18 -0700
Hi,
That worked perfect. But you mentioned that by using session variables,
there will be some overhead. How can I programmatically handle this problem.
Thanks,
Vasantha
"Grant Merwitz" wrote:
> You can session the DataSource, and rebind it.
>
> This bears some overhead though.
> I would suggest initially pulling the Data our of the Cache for the first
> page,
> then again for the second.
>
> If in the first page, the user makes some changes to the data, and thats
> what you want to display,
> then you can Take the DataSet out of the DataGrids datasource, and session
> that to rebind it in the 2nd Page.
>
> Something like:
> PAGE1:
>
> DataSet ds = (DataSet)DataGrid.DataSource; //If you used a datsource
> Session["MyDataSet"] = ds;
>
> PAGE2:
>
> DataSet ds = (DataSet)Session["MyDataSet"];
> DataGrid2.DataSource = ds;
> DataGrid2.DataBind;
>
> HTH
>
> "Vasantha peddireddy" <Vasanthapeddireddy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
> in message news:E81C31F8-6673-4770-9B76-BAB00EC1F9E2@xxxxxxxxxxxxxxxx
> >I am posting a page to another page (form post). The data grid on the
> >second
> > page is being populated with data. Now, on page load of the second page, I
> > would like to send the grid data on this page to the first page and
> > populate
> > the grid on the first page with the same data on second page. Please let
> > me
> > know how can I do this.
> >
> > Thanks,
> > Vasantha
>
>
>
.
- Follow-Ups:
- Re: Passing grid data from one page to another
- From: Grant Merwitz
- Re: Passing grid data from one page to another
- References:
- Passing grid data from one page to another
- From: Vasantha peddireddy
- Re: Passing grid data from one page to another
- From: Grant Merwitz
- Passing grid data from one page to another
- Prev by Date: Re: Not able to load web user control dynamically in ASP .Net 2.0
- Next by Date: RE: innertext, javascript, datagrid, database update
- Previous by thread: Re: Passing grid data from one page to another
- Next by thread: Re: Passing grid data from one page to another
- Index(es):
Relevant Pages
|