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
Nil [ Mi, 09 April 2008 11:34 ] [ ID #1938915 ]

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"
reb01501 [ Mi, 09 April 2008 12:13 ] [ ID #1938916 ]

Re: Static variable vs View State

"Nil" <Nil [at] discussions.microsoft.com> wrote in message
news:8B08EFD7-2D9C-4075-BC5D-8DA0D3A7D4D3 [at] 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
Anthony Jones [ Mi, 09 April 2008 23:53 ] [ ID #1938927 ]
Webserver » microsoft.public.inetserver.asp.general » Static variable vs View State

Vorheriges Thema: Guts Pie Earshot pm3 download
Nächstes Thema: page onload/refresh