Connecting Tech Pros Worldwide Forums | Help | Site Map

Use of GridView with EnableViewState="false"

Gilbert Tordeur
Guest
 
Posts: n/a
#1: Aug 27 '08
Hello,

As most of my users use a slow WAN I always write aspx pages with
EnableViewState="false" to reduce the page size.

However, I remark that the RowCommand and the RowDeleting routines of my
GridView are not executed with EnableViewState="false", while they are with
EnableViewState="true".

Does anybody have a solution ?

Thank you,
Gilbert




rowe_newsgroups
Guest
 
Posts: n/a
#2: Aug 27 '08

re: Use of GridView with EnableViewState="false"


On Aug 27, 6:21*am, "Gilbert Tordeur" <gilbert.tord...@jci.comwrote:
Quote:
Hello,
>
As most of my users use a slow WAN I always write aspx pages with
EnableViewState="false" to reduce the page size.
>
However, I remark that the RowCommand and the RowDeleting routines of my
GridView are not executed with EnableViewState="false", while they are with
EnableViewState="true".
>
Does anybody have a solution ?
>
Thank you,
Gilbert
My favorite solution for dealing with ViewState is to write
applications in ASP.NET MVC, but that's a pretty drastic step.

In your case I'd say just turn on ViewState for the grid view and be
done with it, especially if the page size doesn't increase much.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
Gilbert Tordeur
Guest
 
Posts: n/a
#3: Aug 29 '08

re: Use of GridView with EnableViewState="false"



"rowe_newsgroups" <rowe_email@yahoo.coma écrit dans le message de news:
4ddfdd7f-e4bb-4bd9-83e1-36de5c4fe85e...oglegroups.com...
On Aug 27, 6:21 am, "Gilbert Tordeur" <gilbert.tord...@jci.comwrote:
Quote:
Hello,
>
As most of my users use a slow WAN I always write aspx pages with
EnableViewState="false" to reduce the page size.
>
However, I remark that the RowCommand and the RowDeleting routines of my
GridView are not executed with EnableViewState="false", while they are
with
EnableViewState="true".
>
Does anybody have a solution ?
>
Thank you,
Gilbert
My favorite solution for dealing with ViewState is to write
applications in ASP.NET MVC, but that's a pretty drastic step.

In your case I'd say just turn on ViewState for the grid view and be
done with it, especially if the page size doesn't increase much.

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/

OK Seth, thank you for your answer.
Gilbert


Closed Thread