470,636 Members | 1,473 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Use of GridView with EnableViewState="false"

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

Aug 27 '08 #1
2 8019
On Aug 27, 6:21*am, "Gilbert Tordeur" <gilbert.tord...@jci.comwrote:
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/
Aug 27 '08 #2

"rowe_newsgroups" <ro********@yahoo.coma écrit dans le message de news:
4d**********************************...oglegroups.com...
On Aug 27, 6:21 am, "Gilbert Tordeur" <gilbert.tord...@jci.comwrote:
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
Aug 29 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Andrew Robinson | last post: by
4 posts views Thread by Jonathan Wood | last post: by
1 post views Thread by trint | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.