Ask a Question related to ASP.NET General, Design and Development.
-
Gandalf #1
Best place to hold dataset between postbacks?
I have a page with a datagrid that is bound initially to a dataset. As the
user changes items on the grid, I want to cache the changes until a final
submit. Ideally I wish to update the dataset on each postback and at the
end, submit the changes to the database. But where should I store the
dataset? I can put it into the viewstate, but that gets very large, or I can
put it in a session object. Which of these two is better? Are there any
other alternatives?
Thx
Gandalf Guest
-
Postbacks and CommandEventArgs
In the situation below I am calling "OnCommand(CommandEventArgs.Empty);" from IPostBackEventHandler.RaisePostBackEvent. but I get the compile... -
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset
Hi All, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data... -
PerlTK: using place to place the same widget twice
Greetings, Is it possible to define a Perl/TK widget and then use the place method to place that widget more than once. I can't seem to figure... -
Problematic Postbacks
this may be a stupid response, after updating the database, how about rebounding the label ? news.microsoft.com wrote: -
Grr Tables and postbacks
Hi, If you create controls dynamically you should do it on every post back. Remove the (!IsPostBack) condition. Natty Gur, CTO Dao2Com Ltd.... -
Steve C. Orr, MCSD #2
Re: Best place to hold dataset between postbacks?
In most situations Session state would likely be the best place. Remember
to deallocate when you're done with it so it will eat a minimal amount of
memory. Even then it will take a significant amount of server memory for a
while, which will put limitations on the scalability of your app. Using
viewstate would offload some of that work to the client, but will increase
your bandwidth needs. Another option would be to use a staging table in the
database to save between each request. Of course this puts more load on
your SQL Server.
It's all about trade offs. No matter how you do it, the work has got to go
somewhere, in some tier. Pick one. How about the least used one?
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Gandalf" <gandalf@sauron.com> wrote in message
news:uVbpjjLTDHA.212@TK2MSFTNGP10.phx.gbl...can> I have a page with a datagrid that is bound initially to a dataset. As the
> user changes items on the grid, I want to cache the changes until a final
> submit. Ideally I wish to update the dataset on each postback and at the
> end, submit the changes to the database. But where should I store the
> dataset? I can put it into the viewstate, but that gets very large, or I> put it in a session object. Which of these two is better? Are there any
> other alternatives?
>
> Thx
>
>
Steve C. Orr, MCSD Guest



Reply With Quote

