473,506 Members | 16,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webparts and ViewState

I seem to be having a problem or am just not understanding something with
WebParts. I am losing ViewState when I add a control to a ZoneTemplate. For
example, if I have a Label and set the Label's Text property to "bar" only on
the first page load(i.e. !IsPostBack), and then click a button or something,
it works fine. Viewstate has retained the value "bar". However, when I add
the Label to a WebPartZone and repeat the same experiment, I lose the value
"bar". I have tried the same experiment with a GridView (about 50 rows with
5 columns of data) and the page size differs by about 2K by either placing
the grid inside or outside (outside being larger) the WebPartZone. The
strange thing with the GridView experiment is that it kept all of the rows
and columns, but the cell data was gone! This, to me, looks like the
GridView's ViewState was maintained, but not its child controls. What is
going on here?
Thank you in advance.
Nov 19 '05 #1
0 777

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

Similar topics

10
2252
by: Barbara Alderton | last post by:
I am working with SharePoint 2003. I am using (using C#) an existing webpart as a child control (server control). I need to access/manipulate the HTML that the control outputs prior to rendering...
1
2197
by: Astera | last post by:
I seem to be having a problem using web parts after the beta 2 release. Any time I try to have the WebPartManager on any page, I get the exception listed below. I've gone through the steps listed...
0
1410
by: Alan Silver | last post by:
Hello, Sorry for the long post, but I want to try and explain it clearly... I'm using webparts for (possibly) an unusual scenario, and I'm having problems. This could be because I'm doing...
0
987
by: Aaron C. Roberts | last post by:
Hi there: I am working with ASP.NET 2.0 and I've implemented a WebPartPanel control to server as a wrapper for my WebPart enabled site. The wrapper has a custom omplementation of the HelpVerb...
3
2110
by: Bart Van Hemelen | last post by:
I'm working on a project where the user of a site will receive custom content, depending on a set of parameters. The content will all be contained in UserControls (.ascx), that will be used as...
6
2634
by: brianroisentul | last post by:
Hello, I'd like to know which dll I have to reference when I use the System.Web.UI.WebControls.Webparts namespace. Thanks, Brian
3
1459
by: Q. John Chen | last post by:
I have an INTRAnet site that need to add some content management feature. And I thought that I can use the WebParts. Since this is an internal site, I use Windows authentication so the use don't...
1
1401
by: sales | last post by:
How can I turn a webpart of for all users in the default mode and on Reset personalation. I have a portal page in ASP.net and have 7 webparts displayed, I only want 6 displayed which the option to...
3
2147
by: clintonG | last post by:
Why don't we see more WebParts being used on the web? SharePoint gets all the fun? And what are the prevailing opinions be they what they may about the use of WebParts rather than WPF when the...
0
7218
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
7478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5614
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,...
1
5035
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4701
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.