Click here to Skip to main content
15,923,006 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: imagebutton Pin
farogh haider14-Dec-09 18:52
farogh haider14-Dec-09 18:52 
Questionquery help needed Pin
siddisagar10-Dec-09 23:59
siddisagar10-Dec-09 23:59 
AnswerRe: query help needed Pin
KittyKit11-Dec-09 0:17
KittyKit11-Dec-09 0:17 
AnswerRe: query help needed Pin
Blue_Boy11-Dec-09 0:28
Blue_Boy11-Dec-09 0:28 
QuestionWrong Value being displayed Pin
sriharsha_1210-Dec-09 23:41
sriharsha_1210-Dec-09 23:41 
AnswerRe: Wrong Value being displayed Pin
Ashfield11-Dec-09 1:26
Ashfield11-Dec-09 1:26 
QuestionViewstate vs Rereading XMLDocument Pin
KittyKit10-Dec-09 22:59
KittyKit10-Dec-09 22:59 
AnswerRe: Viewstate vs Rereading XMLDocument Pin
Paulo Zemek11-Dec-09 8:26
Paulo Zemek11-Dec-09 8:26 
Well, you must first be aware of the differences of functionalities between session, asp Cache and viewstates. It is not only about memory.

For example:
You load your page. You store some data in ViewState["x"].
You load another page. You also store some data in ViewState["x"], but it is a different data.
No problem will be caused, as ViewState is linked to the calling page. If you open a new web-browser in the same page (Control+N) as soon as you do anything different, each page (the old and the new) will have different view-states, so the old-page will not display the new data if you press F5, for example.

Session. If you put information named "X" in session, every page will share the same information. If you update information X in one page, it will also change the X visible in another page, which may not be wanted. But, of course, it will not affect other users, as they will have other sessions.

Asp Cache. The cached item will be shared among all users. This is rarelly what is needed.




The biggest problem of ViewState is that it is sent to the client. So, many times reprocessing the item is better (faster) than sending it to the client and receiving it back. But, I must say I have a solution for this.
Look at my article:
Pfz.Caching - ViewIds instead of ViewStates[^]

Using it, the view-state will works as always in terms of being exclusive to a page, a Control+N will not corrupt it, but it will be kept in the server memory and/or disk, without being sent to the client. Probably the easiest and faster solution considering general cases.
GeneralRe: Viewstate vs Rereading XMLDocument Pin
KittyKit13-Dec-09 22:49
KittyKit13-Dec-09 22:49 
GeneralRe: Viewstate vs Rereading XMLDocument Pin
Paulo Zemek14-Dec-09 10:08
Paulo Zemek14-Dec-09 10:08 
GeneralRe: Viewstate vs Rereading XMLDocument Pin
KittyKit21-Dec-09 22:44
KittyKit21-Dec-09 22:44 
GeneralRe: Viewstate vs Rereading XMLDocument Pin
Paulo Zemek22-Dec-09 6:49
Paulo Zemek22-Dec-09 6:49 
QuestionHow to find first index value in a string is character or numeric Pin
Satish - Developer10-Dec-09 22:28
Satish - Developer10-Dec-09 22:28 
AnswerRe: How to find first index value in a string is character or numeric Pin
Petr Pechovic10-Dec-09 22:39
professionalPetr Pechovic10-Dec-09 22:39 
AnswerRe: How to find first index value in a string is character or numeric Pin
Covean10-Dec-09 22:55
Covean10-Dec-09 22:55 
GeneralRe: How to find first index value in a string is character or numeric Pin
Covean10-Dec-09 23:56
Covean10-Dec-09 23:56 
QuestionTreeview Dynamic Display in ASP.NET Pin
Vimalsoft(Pty) Ltd10-Dec-09 21:57
professionalVimalsoft(Pty) Ltd10-Dec-09 21:57 
QuestionImage is not showing Pin
krishnaveer10-Dec-09 21:10
krishnaveer10-Dec-09 21:10 
AnswerRe: Image is not showing Pin
Abhishek Sur10-Dec-09 21:35
professionalAbhishek Sur10-Dec-09 21:35 
GeneralRe: Image is not showing Pin
farogh haider14-Dec-09 19:16
farogh haider14-Dec-09 19:16 
AnswerRe: Image is not showing Pin
sashidhar10-Dec-09 21:40
sashidhar10-Dec-09 21:40 
GeneralRe: Image is not showing Pin
krishnaveer10-Dec-09 21:49
krishnaveer10-Dec-09 21:49 
GeneralRe: Image is not showing Pin
sashidhar10-Dec-09 21:53
sashidhar10-Dec-09 21:53 
GeneralPopup with listbox in asp.net Pin
Nekkantidivya10-Dec-09 20:33
Nekkantidivya10-Dec-09 20:33 
GeneralRe: Popup with listbox in asp.net Pin
Blue_Boy10-Dec-09 20:44
Blue_Boy10-Dec-09 20:44 

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.