473,412 Members | 2,599 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,412 software developers and data experts.

Loading a user controls in Design View

Hello All,

I have designed and built a web control that loads a user control at run
time. The question I have is, can I Load the user control in design view?
Any Ideas or code snippets would be really useful.

Thanks a bunch

oneeye

Nov 17 '05 #1
4 2160
Not sure I understand you fully, but it sounds like you want to build a
custom Designer for your control. If so, see:

http://msdn.microsoft.com/library/de...orwebforms.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"oneeye" <ji*******@ossys.co.uk> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
Hello All,

I have designed and built a web control that loads a user control at run
time. The question I have is, can I Load the user control in design view?
Any Ideas or code snippets would be really useful.

Thanks a bunch

oneeye

Nov 17 '05 #2
Hi Kevin

Thanks for your response. The question I asked badly is really about loading
a UserControl in design view.

At runtime my Web Control loads a user control that is specified by one of
it's properties. How do I get the web control to load the User Control when
loaded in the designer ? is this possible??

Cheers

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:Ou*************@TK2MSFTNGP09.phx.gbl...
Not sure I understand you fully, but it sounds like you want to build a
custom Designer for your control. If so, see:

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpcondesign-timeforwebforms.asp
--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"oneeye" <ji*******@ossys.co.uk> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
Hello All,

I have designed and built a web control that loads a user control at run
time. The question I have is, can I Load the user control in design view? Any Ideas or code snippets would be really useful.

Thanks a bunch

oneeye


Nov 17 '05 #3
You might want to look at the thread "Control Lifetime Radically Different
in Design Mode - Documented?" in
microsoft.public.dotnet.framework.aspnet.buildingc ontrols on 19-Jul-2003.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com

"oneeye" <ji*******@ossys.co.uk> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi Kevin

Thanks for your response. The question I asked badly is really about loading a UserControl in design view.

At runtime my Web Control loads a user control that is specified by one of
it's properties. How do I get the web control to load the User Control when loaded in the designer ? is this possible??

Cheers

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:Ou*************@TK2MSFTNGP09.phx.gbl...
Not sure I understand you fully, but it sounds like you want to build a
custom Designer for your control. If so, see:

http://msdn.microsoft.com/library/de...us/cpguide/htm l/cpcondesign-timeforwebforms.asp

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"oneeye" <ji*******@ossys.co.uk> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
Hello All,

I have designed and built a web control that loads a user control at run time. The question I have is, can I Load the user control in design view? Any Ideas or code snippets would be really useful.

Thanks a bunch

oneeye



Nov 17 '05 #4
Thanks for your responses

Oneeye
"Kevin Spencer" <ke***@takempis.com> wrote in message
news:Oi**************@TK2MSFTNGP11.phx.gbl...
In the designer, nothing gets "loaded." How can something be loaded when the app isn't running? But you can emulate that by using a custom Designer class for your control. That's why I gave you the link.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"oneeye" <ji*******@ossys.co.uk> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi Kevin

Thanks for your response. The question I asked badly is really about

loading
a UserControl in design view.

At runtime my Web Control loads a user control that is specified by one of
it's properties. How do I get the web control to load the User Control

when
loaded in the designer ? is this possible??

Cheers

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:Ou*************@TK2MSFTNGP09.phx.gbl...
Not sure I understand you fully, but it sounds like you want to build a custom Designer for your control. If so, see:

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpcondesign-timeforwebforms.asp

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"oneeye" <ji*******@ossys.co.uk> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
> Hello All,
>
> I have designed and built a web control that loads a user control at

run > time. The question I have is, can I Load the user control in design

view?
> Any Ideas or code snippets would be really useful.
>
> Thanks a bunch
>
> oneeye
>
>
>



Nov 17 '05 #5

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

Similar topics

10
by: BBM | last post by:
Hi, I have been developing with C# User Controls and occasionally have a problem where I "lose" a control from the design surface of the User Control. The controls that I am using to build my...
0
by: Jim | last post by:
I am having some trouble with user controls and would appreciate any input / advice on where to go with this... :) 1. The first problem, and perhaps the root of the others, is that I have...
0
by: Jim | last post by:
I am having some trouble with user controls and would appreciate any input / advice on where to go with this... :) 1. The first problem, and perhaps the root of the others, is that I have...
5
by: John Richardson | last post by:
I've been bothered for some time about my DataGrid not populating my rows very quickly. I have about 10K rows loading into the grid. I create a datatable dt with 2 columns, an ID and a display. ...
0
by: oneeye | last post by:
Hello All, I have designed and built a web control that loads a user control at run time. The question I have is, can I Load the user control in design view? Any Ideas or code snippets would be...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
2
by: Dave A | last post by:
I just don't get this... If I need to dynamically load controls into a web page I simply need to go PlaceHolder1.Controls.Add(new Button()); or similar. However when I need to dynamically...
12
by: Joe | last post by:
Hello All: Do I have to use the LoadControl method of the Page to load a UserControl? I have a class which contains three methods (one public and two private). The class acts as a control...
2
by: adiel_g | last post by:
I added a user control to a webform in Asp.net 2.0. I am also adding several other user controls to this webform. Now I am trying to find a way to stop the user controls from loading up when I...
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
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
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
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.