473,396 Members | 1,891 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.

WebParts: Nested UserControls

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 page). The wrapper works fine...so I think.

Inside this control I have attempted to place a UserControl I've written
that has a few DropDownLists which bind to my ObjectDataSource(s) to
retrieve data. Selection 1 drives 2, which drives 3, and then 4 (typical
multi-stage select senario).

If I place the UserControl on the page, it will as expected, work just fine,
but it will be wrapped in the GenericWebPart control and not have any help.
If I place it in my WebPartPanel it seems to crap out on the databinding. I
will bind the first DropDownList to my ObjectDataSource but on postback it
never does, and therefore breaks some of the conditional display / hide /
property setting that takes place in Page_PreRender.

I have tracked the issue down to a problem with ViewState and the Control
Tree insidethe WebPartPanel but I'm unclear as to what the problem is. One
thing I have identified is that the Page LifeCycle is NOT doing what I would
expect. It seems to be incosistantly binding data at different points in
the cycle.

Any help with this would be greatly appriciated. I've been trying to track
down the problem for a day and a half now with little to no progress.
[Maybe this is a lesson not to be using such new technologies =:), but I
absolutley love the rich environment that Atlas and WebParts will provide me.
...should I get things working ]

I'd be more than happy to provide sample code.

Desperate Developer,
Aaron C. Roberts
Jun 22 '06 #1
0 982

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

Similar topics

2
by: Marek | last post by:
Hi, I have a Form with many UserControls on it. Some of the UserControls contain other Controls. What is the best way of notifying each of the nested controls about an event that has occured on...
1
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...
5
by: Christopher Kimbell | last post by:
I have created my own WebPart using code, it is not derived from a UserControl. Inside this WebPart I create a Calendar Control and add it to the WebParts Control collection. Now I want to apply...
3
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...
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: brad | last post by:
Group, I'm using Visual Studio 2003 to create an ASP.NET 1.1 project which contains nested server user controls in order to create a tree-like hierarchy. The tree is a sort of question and...
0
by: sam | last post by:
Saw a post on this on the Sharepoint PortalServer Development group (see link below), but I need to do this in ASP.NET 2.0 without Sharepoint : I would like to create a web part that contains...
0
by: shane.niebergall | last post by:
Hi - I've been able to create my own webparts as a custom control, by compiling as a class library and then importing the dll on my asp.net page. However, I do appreciate the convenience of the...
3
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
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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.