Use of GridView with EnableViewState="false"

  • Thread starter Thread starter Gilbert Tordeur
  • Start date Start date
G

Gilbert Tordeur

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
 
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/
 
"rowe_newsgroups" <[email protected]> a écrit dans le message de (e-mail address removed)...
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
 
Back
Top