Re: Passing grid data from one page to another

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
>
>
>
.



Relevant Pages

  • Re: Sepang Qualifying
    ... Grid Positions are being calculated on combined practice times. ... starts 5th now, and had they gone with the 3rd session results only, he ... which was where Rossi got to in the morning. ... Capirossi was doing ...
    (rec.motorcycles.racing)
  • Re: SessionID Changes in production machine....help
    ... > a 2nd grid to some of my pages where the arraylist feeding the ... > grid is being kept in session till finalized to database. ... Maintaining state in objects stored in the Session Object is tricky. ... >>> My browser is configured to accept cookies, so really I shouldn't have to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Sepang Qualifying
    ... An interesting decision by the FIM on the MotoGP grid, I think, basically making a "homie" decision that potentially favors one guy - Pedrosa. ... Other than Dani, the grid is exactly the same as the 3rd session down to Tamada in 12th position, the only other guy to make a move by this call. ... Beyond that, a number of riders went out on qualifiers at the end of the last session, so ended up with an advantage, including the front row of Rossi, Hayden and Capirossi, probably Roberts in 4th, plus de Puniet and maybe Hopkins, possibly Melandri. ... Best race tire pace was more like low 2:02s, which was where Rossi got to in the morning. ...
    (rec.motorcycles.racing)
  • F1: Monaco GP: Honda Saturday qualifying notes
    ... row of the grid for tomorrow's Monaco Grand Prix after posting the 7th ... fastest lap in this afternoon's thrilling qualifying session. ... session in each of the last six races, ... the grid in 14th position. ...
    (rec.autos.sport.info)
  • Persisting DataSet through DataGrid
    ... Rather than store the dataset in session between page calls I've found ... about how to persist datasets using session but this seems to give me ... persistence for "free" through viewstate on the grid. ...
    (microsoft.public.dotnet.framework.aspnet)