473,569 Members | 2,782 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 782

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

Similar topics

10
2257
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 it to the the page. The control outputs a list in a one-column table format. I need to access the contents of the rows and output them with...
1
2202
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 below and have gone as far as given EVERYONE full control of the App_Data folder. I am using the default settings (which I assume is the Cassini...
0
1412
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 something they weren't designed for, or it could just be that I don't understand what's going on well enough to get it to work. The situation is that...
0
990
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 that reads data from an XML file and adds a div to the top or bottom of the WebPart (as opposed to Navigating away or replacing the part on the...
3
2115
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 webparts on a page. We need to add the webparts dynamically to the site, depending on the status of the user: this involves a personalisation of a...
6
2642
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
1464
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 have to logon. But for authorization, I uses an EXISTING corporate database (nothing to do with aspnet_Membership etc.). In short, I created...
1
1405
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 turn the other on. (which I do from the catalog mode) I have tried visible but you can not turn it on again. I have all the webparts in a...
3
2150
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 context would be the development of a service which enables users to select templates that have pre-established zones which function as content...
0
7697
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8120
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7672
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7968
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2113
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 we have to send another system

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.