473,395 Members | 1,639 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,395 software developers and data experts.

disabling viewstate

PJ6
Apparently ASP.NET completely ignores base.EnableViewState = false.
Overriding SaveViewState does nothing, and I get an exception if I override
LoadViewState. OK, I give up. How do I make a control that does NOT preserve
a ViewState, for itself, or any of its child controls?

Paul
Mar 26 '07 #1
1 898
PJ6
In case anyone cares to know the answer that I found -

To keep a control's ViewState from being preserved, simply keep it out of
the Controls collection, and render it manually by overriding the Render
method.

Paul

"PJ6" <no***@nowhere.netwrote in message
news:OY**************@TK2MSFTNGP04.phx.gbl...
Apparently ASP.NET completely ignores base.EnableViewState = false.
Overriding SaveViewState does nothing, and I get an exception if I
override LoadViewState. OK, I give up. How do I make a control that does
NOT preserve a ViewState, for itself, or any of its child controls?

Paul

Apr 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark Rodseth | last post by:
Hi Is it possible to disable viewstate on a repeater control and still raise an OnItemCommand event? All I want to do is click a button on one of the repeater items, raise and event and capture...
6
by: sonic | last post by:
Hi, I am experimenting with different viewstate management ideas for large datagrids, and found a microsoft suggestion to turn it off, and only store relevant information by manually accessing...
3
by: swesorick | last post by:
I would like 95% of my site to have the viewstate disabled, in order to reduce the size of my pages. However, there are about 5% of the pages on my site that will require viewstate. Is there...
2
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
I want to disable ViewState for all pages associated with a given MasterPage. How do I do this? I've tried doing... <%@ Master Language="C#" AutoEventWireup="true" CodeFile="StdMaster.master.cs"...
1
by: JJ | last post by:
Is there way in webconfig to disable viewstate for all aspx files in a certain folder? I know there is a way to do that for the whole application and i am wondering same concept is available for...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.