473,399 Members | 3,603 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,399 software developers and data experts.

Reach components from designer in ASP.NET 2.0

For a while I have been searching for a way to reach the components via
the designer host. Via the designer host's Container, it is possible to
reach the controls, but it is not possible to reach components (such as
a SqlConnection object). This was possible in ASP.NET 1.1.

In the following code, it is possible to reach controls (such as a
SqlDataSource) but it is not possible to reach a component.

Container cont =
(Container)Component.Site.GetService(typeof(IConta iner));
if (cont != null)
{
object o = cont.Components[_objectToUse];
// Do something with the object...

Does anyone know if it is possible to reach these components during
design-time and how to do that?

Thank you very much in Advance.

May 17 '06 #1
0 986

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

Similar topics

2
by: Robby | last post by:
Hello, I am trying to build a component that in turn usues a designer. How does the designer retrieve the projects datasets and tables? Are there any good examples of building a designer...
4
by: james | last post by:
I have a custom UserControl, which can have many sub class levels derived from it. I want to be able to discover all the components at Load time, but the only components I can see from the base...
5
by: Patrick Vanden Driessche | last post by:
Hi All, I'm currently writing an in-house Form validation framework (WinForms) which is based on 'Component'-inheriting object. So basically, I have a small hierarchy. FormValidator +--...
8
by: JackRazz | last post by:
Is it possible to add an extended property to components like I can with controls via IExtenderProvider? JackRazz
6
by: Roman | last post by:
I have a collection of custom components and using them only in code. I don't need to see them in designer. Is there a way to hide them? Thanks, Roman
7
by: John | last post by:
I'm trying to use the OWC on my web form and trying to make it look like Excel. I have the box there but no formatting such as headers, bold font, etc. I have the same control on a asp page and I...
2
by: David Veeneman | last post by:
Is there a way to iterate the components on a form? I need to determine whether an instance of my custom component (a System.ComponentModel component) is present in a form. I have tried...
0
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, Mysteriously, the components for the Toolbox for Report Items (RDLC reports - VS2005 - designer) have all changed to Textbox. There is no List component, Matrix, Table, Line, Chart,...
7
by: RBrowning1958 | last post by:
here's an easy one for you guys - .NET form designer generates this: private System.ComponentModel.IContainer components = null; but I don't see it used anywhere in the generated code - what's...
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
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
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...
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.