473,382 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 8159
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
9
by: kai | last post by:
Hi, All I create an ASP.NET page, it contains FirstName textbox and LastName textbox. I setup "enableViewState=false" in page directive. When I enter data in FirstName and LastName textbox,...
1
by: Andrew Robinson | last post by:
Woundering if anyone else has had issues with ConvertEmptyStringToNull="false" ? I have a custom data class and am passing values to it via an ODS. On my insert, if the bound text box is empty...
1
by: Roy | last post by:
Hey all. Below is the nested syntax on how to make a "codeless" nested gridview embedded within another gridviews templatefield column. Only problem is that it loads slow. REAL SLOW. There has to...
4
by: Jonathan Wood | last post by:
Okay, I spent about 3 hours getting the GridView control to do what I needed. Basically, I set the control's AutoGenerateColumns to False and then defined a single template column (which I will...
1
by: trint | last post by:
i have this in the html view: <asp:TemplateField HeaderText ="Remove?"> <ItemTemplate> <asp:CheckBox ID="removeSelect1" runat="server" /> </ItemTemplate> <HeaderTemplate> </HeaderTemplate>...
2
by: Brook | last post by:
In webform.aspx: <cc:ctlB ID="ctl1" runat="server" Width="200px" /> If set value to width property, I will get a error that say ctlB.Page is null. This control will be fine with no width...
0
by: Gilbert Tordeur | last post by:
Hello, As most of my users use a slow WAN I always write aspx pages with EnableViewState="false". However, I remark that the RowCommand and the RowDeleting routines of my GridView are not...
4
by: justice750 | last post by:
Hi All, I am using a FormView control. The allows me to update records in the database. However, when a database field is null I can not update the field on the form. It works fine when the field...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.