Groups | Blog | Home
all groups > asp.net building controls > march 2004 >

asp.net building controls : Design time visibility of a Web User Control


Alessandro Zifiglio
3/29/2004 9:42:36 AM
As you will note from the link : =
http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/vbcon/=
html/vbconwebusercontrolsvscustomwebcontrols.asp
The design time abilities is one of the main difference between the two =
..

Web user controls are easy to make, but they can be less convenient to =
use in advanced scenarios. You develop Web user controls almost exactly =
the same way that you develop Web Forms pages. Like Web Forms, user =
controls can be created in the visual designer, they can be written with =
code separated from the HTML, and they can handle execution events. =
However, because Web user controls are compiled dynamically at run time =
they cannot be added to the Toolbox, and they are represented by a =
simple placeholder glyph when added to a page.

Web custom controls are compiled code, which makes them easier to use =
but more difficult to create; Web custom controls must be authored in =
code. Once you have created the control, however, you can add it to the =
Toolbox and display it in a visual designer with full Properties window =
support and all the other design-time features of ASP.NET server =
controls




[quoted text, click to view]
Erlend F. Lund
3/29/2004 9:42:54 AM
Hi

No. This is one of the differences between user and custom controls. A user
control has a graphical representaton during its own design, but doesn't
render when it is dropped on a web-form.
A custom control has no graphical interface during its design. All layout
and visual behaviour is written in code. However, a custom control renders
when it is used on a web-form during the web-forms design.

-Erlend

[quoted text, click to view]

Alessandro Zifiglio
3/29/2004 2:24:15 PM
I dont know where you are getting at Erlend.
"No" to what ? What is not clear to you in my post.
I really dont plan to start an issue here on whether it is "one of the main
differences" or is only "one of the differences" --interpret it however you
want :)

[quoted text, click to view]

Wayne M J
3/29/2004 2:58:02 PM
I have seen plenty of documentation on Web Custom Controls and how to get
them visible during the design stage of development, but I have not
encountered anything as yet on setting Web User Controls such that they too
are visible during the design stage.

Is it possible?

AddThis Social Bookmark Button