Click here to Skip to main content
15,900,461 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionIntegrating 2 Data Controls , one as the Control to the Other Pin
ctrlnick14-Sep-07 11:01
ctrlnick14-Sep-07 11:01 
AnswerUsing 2 Data Controls to show related Data Pin
John-ph14-Sep-07 20:41
John-ph14-Sep-07 20:41 
Questionwhy to use datasource to gridview? Pin
ss.mmm14-Sep-07 10:28
ss.mmm14-Sep-07 10:28 
AnswerRe: why to use datasource to gridview? Pin
Saksida Bojan14-Sep-07 11:19
Saksida Bojan14-Sep-07 11:19 
AnswerRe: why to use datasource to gridview? Pin
John-ph14-Sep-07 21:02
John-ph14-Sep-07 21:02 
QuestionSession, Cache or Viewstate Pin
ss.mmm14-Sep-07 10:08
ss.mmm14-Sep-07 10:08 
AnswerRe: Session, Cache or Viewstate Pin
N a v a n e e t h14-Sep-07 21:26
N a v a n e e t h14-Sep-07 21:26 
AnswerRe: Session, Cache or Viewstate Pin
John-ph14-Sep-07 23:25
John-ph14-Sep-07 23:25 
Session (User Level Access)

Storing the Dataset in the session is not at all a good idea. The reason is --- Say you have a dataset containg around 1000 records and you are storing it in a Session Object. Let us consider some 1000 user's logged-in and having access to the same set of Records. Can you Image the load on the Server? In this case, Response from the server will be tramendously slow and User's will experience Response Time out problem for each page Request. Instead of storing it in a session object, we can go and query the Database everytime.

Viewstate (Page Level Access)

when we store anything in the Viewstate, a hidden field will be created in the HTML. Let us take the same example -- say you have a dataset containing arund 1000 records and you are Assigning it to the Viewsate. Run this and view the source of the page. This will increase the page size dramatically. When the Page size is larger It will take much longer time to execute and Load.

ViewState is only used to save the values for the page level access which should be maintained after post backs. It Is recommended and Ideal only to save small values.

Caching (Application Level Access)

If you plan to store a large dataset then Data Caching is the Best way. A copy of Dataset can be cached in the server and whenever any user want to access the same set of Data then it can be fetched from the Cache instead of querying the Database everytime. Having a single copy of Cached Data for all User's doesn't put's much load on the server and This will radically increase the perfromance of the application.



Regards
J O H N Rose | [Rose]

"Even eagles need a push." David McNally

QuestionSession timeout doesn't work when sessionState mode is SQL server Pin
vicky45714-Sep-07 9:36
vicky45714-Sep-07 9:36 
AnswerRe: Session timeout doesn't work when sessionState mode is SQL server Pin
N a v a n e e t h14-Sep-07 21:18
N a v a n e e t h14-Sep-07 21:18 
QuestionNameSpace Pin
seemamltn14-Sep-07 8:10
seemamltn14-Sep-07 8:10 
AnswerRe: NameSpace Pin
Saksida Bojan14-Sep-07 9:28
Saksida Bojan14-Sep-07 9:28 
QuestionHow to debugging DLLs solutions Pin
Caio Vitor14-Sep-07 7:45
Caio Vitor14-Sep-07 7:45 
AnswerRe: How to debugging DLLs solutions Pin
Saksida Bojan14-Sep-07 9:45
Saksida Bojan14-Sep-07 9:45 
GeneralRe: How to debugging DLLs solutions Pin
Saksida Bojan14-Sep-07 11:14
Saksida Bojan14-Sep-07 11:14 
AnswerRe: How to debugging DLLs solutions Pin
ctrlnick14-Sep-07 11:07
ctrlnick14-Sep-07 11:07 
QuestionNeural Network? Pin
tanj005614-Sep-07 7:42
tanj005614-Sep-07 7:42 
QuestionHow to pass the gridview datakey to filter a dataset, help pleas Pin
orsini14-Sep-07 7:27
orsini14-Sep-07 7:27 
Questioncheckbox Pin
netJP12L14-Sep-07 7:11
netJP12L14-Sep-07 7:11 
AnswerRe: checkbox Pin
N a v a n e e t h14-Sep-07 21:29
N a v a n e e t h14-Sep-07 21:29 
QuestionHow to get Multilpe Headers in datagrid Pin
kavishan14-Sep-07 5:58
kavishan14-Sep-07 5:58 
AnswerRe: How to get Multilpe Headers in datagrid Pin
N a v a n e e t h14-Sep-07 21:31
N a v a n e e t h14-Sep-07 21:31 
GeneralRe: How to get Multilpe Headers in datagrid Pin
kavishan15-Sep-07 16:28
kavishan15-Sep-07 16:28 
Questiongetting data from selected row or all textboxes in nested datagrid Pin
cbm14-Sep-07 5:50
cbm14-Sep-07 5:50 
AnswerRe: getting data from selected row or all textboxes in nested datagrid Pin
Saksida Bojan14-Sep-07 9:47
Saksida Bojan14-Sep-07 9:47 

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.