Newbie question on Viewstate information

R

raagz

Hi All,

I am new to ASP.NET .
I have developed an sample application .
My problem is that all webpages are very very slow..

and when i see the HTML source from the IE (view -> source) i see

a lot of viewstate information ..

i copied the whole viewstate information and pasted in text file to
see its size..and i am totally surprised to see its size as 1.5MB !

So can anybody suggest me what mistake i have done in my application
and what measures should i take to make my application run faster ?

Thanks

Regards
Raagz
 
S

STom

Do you have lots of controls on the pages? Do these controls have their
viewstate property set to True?
 
M

MC D

1.5 megs! Holy crap!

How many controls on the page? Each control should have its viewstate
property set to false unless it needs to maintain its state between
postbacks.

Also, the enableviewstatemac property of the page directive should be false,
otherwise the viewstate will be larger.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top