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

ViewState for Datalists

Hello All,

I have a question on datalists. I have 5 datalists on a page and when I try
to view the "ViewSource", the value for the __VIEWSTATE is empty. How do
datalists persist their values?

I am not binding the datalist each and every time. Strangely whenever I try
to access datalist elements from Datalist_ItemCommand it is maintaining it's
viewstate. How is this possible?

Thanks for your help.

Mar 6 '06 #1
2 1056
Perhaps the SavePageStateToPersistenceMedium and LoadPageState... are
overloaded somewhere and the viewstate is being stored somewhere else..

Karl

--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Diffident" <Di*******@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
Hello All,

I have a question on datalists. I have 5 datalists on a page and when I
try
to view the "ViewSource", the value for the __VIEWSTATE is empty. How do
datalists persist their values?

I am not binding the datalist each and every time. Strangely whenever I
try
to access datalist elements from Datalist_ItemCommand it is maintaining
it's
viewstate. How is this possible?

Thanks for your help.

Mar 6 '06 #2

Yes Karl, you are absolutely right. We have been overriding those two
methods. Thanks for pointing me out!

"Karl Seguin [MVP]" wrote:
Perhaps the SavePageStateToPersistenceMedium and LoadPageState... are
overloaded somewhere and the viewstate is being stored somewhere else..

Karl

--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Diffident" <Di*******@discussions.microsoft.com> wrote in message
news:DC**********************************@microsof t.com...
Hello All,

I have a question on datalists. I have 5 datalists on a page and when I
try
to view the "ViewSource", the value for the __VIEWSTATE is empty. How do
datalists persist their values?

I am not binding the datalist each and every time. Strangely whenever I
try
to access datalist elements from Datalist_ItemCommand it is maintaining
it's
viewstate. How is this possible?

Thanks for your help.


Mar 6 '06 #3

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

Similar topics

6
by: Jonathan Hollinger | last post by:
Very, very strange problem. In developing a C# ASP.NET application, every so often, DataLists disappear from the build. They remain visible and rendered (though sometimes dropping properties and...
2
by: Greg Fischer | last post by:
I need to access the properties of a control that is nested in 2 datalists. How do you use findcontrol method to do that? what I have is like this: <asp:datalist id="dlist" runat="server">...
3
by: vMike | last post by:
I have a Datalist which contains linkbuttons. In order to get the information about the clicked linkbutton I have been enabling the viewstate. I have noticed that the size of the viewstate for...
1
by: tshad | last post by:
I am trying understand when DataLists ItemCreated is called. I put function that attaches a popup to my delete button: Sub DataList_ItemCreated(Sender As Object, e As DataListItemEventArgs)...
5
by: Chumley Walrus | last post by:
I'm trying to display two different datalists on the same page; only the first datalist displays, while the second does not display (and it does have data matching the where clause): <%@ Page...
8
by: guoqi zheng | last post by:
Viewstate is nice, but you know viewstate data counts 1/3 of my page size. I need viewstate because I have button control inside my repeater control, but any idea how can I reduce the viewstate...
2
by: Nathan Sokalski | last post by:
I have a page on which I want to display several sections each of which contain a list of names. I have two database tables, one of which contains the section headings, and the other contains the...
1
by: Heron | last post by:
Hi, I have 2 usercontrols (A and B) which both contain a datalist. Usercontrol B is nested inside the SelectedItemTemplate of Usercontrol B's datalist and both use a viewstate to save there...
2
by: Ole V.-M. | last post by:
Greetings, i have a UserControl, that contains a DataList. That DataList contains as items other DataLists. example: DataList A Row 1 Nested DataList 1 Row 1
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
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...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.