473,385 Members | 1,817 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,385 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 2156
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...

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.