Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Static variable vs View State
Hi,
I am facing problem with the huge Viewstate size(Using .NET 2.0).
to improve the application performance,
I am using Static variable to store view state data.
Does anyone has other option to improve performance or what r drawback of
using Static variable.

Thanks,
Nil


Report this thread to moderator Post Follow-up to this message
Old Post
Nil
04-09-08 11:58 PM


Re: Static variable vs View State
Nil wrote:
> Hi,
>   I am facing problem with the huge Viewstate size(Using .NET 2.0).

There was no way for you to know it (except maybe by browsing through some
of the previous questions in this newsgroup before posting yours - always a
recommended practice) , but this is a classic asp newsgroup. ASP.Net bears
very little resemblance to classic ASP so, while you may be lucky enough to
find a dotnet-knowledgeable person here who can answer your question, you
can eliminate the luck factor by posting your question to a group where
those dotnet-knowledgeable people hang out. I suggest
microsoft.public.dotnet.framework.aspnet or the forums at www.asp.net.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"



Report this thread to moderator Post Follow-up to this message
Old Post
Bob Barrows [MVP]
04-09-08 11:58 PM


Re: Static variable vs View State
"Nil" <Nil@discussions.microsoft.com> wrote in message
news:8B08EFD7-2D9C-4075-BC5D-8DA0D3A7D4D3@microsoft.com...
> Hi,
>    I am facing problem with the huge Viewstate size(Using .NET 2.0).
>    to improve the application performance,
>    I am using Static variable to store view state data.
> Does anyone has other option to improve performance or what r drawback of
> using Static variable.
>

Like Bob says there are much better places to ask this question.

However to answer your question, Static isn't likely to be the solution.
Static variables are held globally across the application.  View state is
maintained for a single client.

View state can easily get out of control.  Google: Reduce Viewstate



--
Anthony Jones - MVP ASP/ASP.NET



Report this thread to moderator Post Follow-up to this message
Old Post
Anthony Jones
04-09-08 11:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 11:02 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.