Click here to Skip to main content
15,887,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPersist a dataset across postbacks Pin
tonymathewt3-Nov-09 1:22
professionaltonymathewt3-Nov-09 1:22 
AnswerRe: Persist a dataset across postbacks Pin
N a v a n e e t h3-Nov-09 1:54
N a v a n e e t h3-Nov-09 1:54 
GeneralRe: Persist a dataset across postbacks Pin
tonymathewt5-Nov-09 1:29
professionaltonymathewt5-Nov-09 1:29 
AnswerRe: Persist a dataset across postbacks Pin
Shameel3-Nov-09 2:09
professionalShameel3-Nov-09 2:09 
GeneralRe: Persist a dataset across postbacks Pin
tonymathewt5-Nov-09 0:37
professionaltonymathewt5-Nov-09 0:37 
AnswerRe: Persist a dataset across postbacks Pin
Abhishek Sur3-Nov-09 3:55
professionalAbhishek Sur3-Nov-09 3:55 
GeneralRe: Persist a dataset across postbacks Pin
tonymathewt5-Nov-09 18:01
professionaltonymathewt5-Nov-09 18:01 
GeneralRe: Persist a dataset across postbacks Pin
Abhishek Sur5-Nov-09 20:35
professionalAbhishek Sur5-Nov-09 20:35 
Dont load such a huge data in ViewState.

When you request for something, you send viewstate with it(even if it is an AJAX request). After receiving the viewstate it decrypts it using Machine key. It then modifies the viewstate according to your serverside program and then finally encrypts it... converts the encrypted string to Base64 and written over Response stream.

That means for every request this huge amount of task IIS has to perform. Hence slow output.

We generally place EnableViewState = false for frequently visited pages to have better performance. So according to me writing a Dataset(which serializes it and write to page) is not good.

On the other hand, Server memory is very low. If there are lots of connections, there might be a huge possibility to have Session OutofMemory. But if you dont have concurrent connections, you might use Session. But dont put the dataset, as there are a lots of properties which are not required. Rather make a list of DataRows and place them in session(Improves than writing DataSet). But still, I dont like this as well.

If I was there, I will always compromise Database hits than Server memory.
Thumbs Up | :thumbsup:

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

QuestionException are Generated in Database Pin
Johndas3-Nov-09 0:54
Johndas3-Nov-09 0:54 
AnswerRe: Exception are Generated in Database Pin
Abhishek Sur3-Nov-09 4:12
professionalAbhishek Sur3-Nov-09 4:12 
QuestionHow can I send email to 100000 persons? [modified] Pin
m-khansari3-Nov-09 0:46
m-khansari3-Nov-09 0:46 
AnswerRe: How can I send email to 100000 persons? Pin
Ashfield3-Nov-09 1:30
Ashfield3-Nov-09 1:30 
GeneralRe: How can I send email to 100000 persons? Pin
m-khansari3-Nov-09 19:39
m-khansari3-Nov-09 19:39 
GeneralRe: How can I send email to 100000 persons? Pin
Ashfield4-Nov-09 7:25
Ashfield4-Nov-09 7:25 
AnswerRe: How can I send email to 100000 persons? Pin
Shameel3-Nov-09 2:13
professionalShameel3-Nov-09 2:13 
GeneralRe: How can I send email to 100000 persons? Pin
m-khansari3-Nov-09 19:40
m-khansari3-Nov-09 19:40 
QuestionText Changed and javascript confirm box Pin
gbabu173-Nov-09 0:23
gbabu173-Nov-09 0:23 
AnswerRe: Text Changed and javascript confirm box Pin
Abhishek Sur3-Nov-09 0:59
professionalAbhishek Sur3-Nov-09 0:59 
GeneralRe: Text Changed and javascript confirm box Pin
gbabu173-Nov-09 1:06
gbabu173-Nov-09 1:06 
GeneralRe: Text Changed and javascript confirm box Pin
Abhishek Sur3-Nov-09 3:47
professionalAbhishek Sur3-Nov-09 3:47 
QuestionSum of row value in Microsoft Report Viewer Pin
sandhya143-Nov-09 0:21
sandhya143-Nov-09 0:21 
AnswerRe: Sum of row value in Microsoft Report Viewer Pin
sashidhar3-Nov-09 0:54
sashidhar3-Nov-09 0:54 
Questionsitemappath is not showing sub categories... Pin
RajpootRohan2-Nov-09 23:34
professionalRajpootRohan2-Nov-09 23:34 
AnswerRe: sitemappath is not showing sub categories... Pin
Nishant Singh2-Nov-09 23:44
Nishant Singh2-Nov-09 23:44 
QuestionHttp Modules Pin
Nishant Singh2-Nov-09 22:37
Nishant Singh2-Nov-09 22:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.