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

enableViewState for single control

AC
Hello, All

Is it possible to set enableViewState='true' for single control on a page
with enableViewState='false'. In particular I am interested in DropDownList,
but neither using IDE to set controls attribute nor <asp:dropdownlist
EnableViewState="True" ...> seems to work.

What is wrong here? Any reference for a good description of enableViewState
use cases will be great.

And I cann't figure our, how does Page.enableViewState relates to
DropDownList.enableViewState (if does).

Thanks for you time!
Alex.
Nov 19 '05 #1
1 1354
Let's say you have a Panel with a textbox in it. The Panel's Visible
property is False, the Textbox's is True.

Do you expect to see the textbox? No. When the panel is invisible, so is
everything else in it, regardless of its own visibility.

Same goes for viewstate.

If you turn off viewstate for the page, the viewstate settings for the
controls on the page is ignored.

"AC" <fo*************@yandex.ru> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Hello, All

Is it possible to set enableViewState='true' for single control on a page
with enableViewState='false'. In particular I am interested in
DropDownList,
but neither using IDE to set controls attribute nor <asp:dropdownlist
EnableViewState="True" ...> seems to work.

What is wrong here? Any reference for a good description of
enableViewState
use cases will be great.

And I cann't figure our, how does Page.enableViewState relates to
DropDownList.enableViewState (if does).

Thanks for you time!
Alex.

Nov 19 '05 #2

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

Similar topics

0
by: Dave Verwer | last post by:
Hi I have a problem which is easily reproducable using VS.NET 2003 and the .Net framework 1.1 (not tested with framework 1.0) regarding disabling ViewState for dynamically created controls. ...
1
by: Ravikanth[MVP] | last post by:
Hi Even though the Viewstate has been disabled, ASP.NET still uses about twenty bytes for Viewstate. Not only can you disable Viewstate at the page level, but you can also disable Viewstate...
4
by: Mike Drewery | last post by:
I want to post a form and not have the form maintain it's value. I am have tried setting EnableViewState = False at the control and on Page Load. When I submit the button my selection is returned. ...
7
by: Max Metral | last post by:
I have a Web.config in my application root dir with the following pages directive: <pages buffer="true" enableViewState="false" enableSessionState="false" enableViewStateMac="false"/> And...
2
by: michele | last post by:
Hi, i'm using a datagrid control in my webform, with AutoGenerateColumns=false; it work very well if EnableViewState=true; including paging and sorting, but this cause a big performance issue, so...
2
by: John Blair | last post by:
Hi, I have the following code which suggests state information will not be kept for the textbox - but when i submit the form with textbox1.value ="ABC" and reshow the page it shows "ABC"...
3
by: Joe | last post by:
Hello all: From what I understand the ItemCommand, UpdateCommand, SortCommand, etc events for the datagrid require that the datagrid's enableVireState property is set to true. Does the...
7
by: Just D. | last post by:
Does anybody know any good solution to avoid this setting to be enabled? I guess Microsoft doesn't care of the Internet connection of the potential client working with asp.net. This EnableViewState...
2
by: teo | last post by:
I have a Listbox, if I set EnableViewStarte = False the AutopostaBack fired by SelectedIndexChanged doesn't work. The 'SelectedIndexChanged' event should call
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.