cleaner to keep in one, centralized place instead on every page. Especially
"gerry" <germ@nospam.nospam> wrote in message
news:uA0ADRIbGHA.1204@TK2MSFTNGP04.phx.gbl...
> I'm not sure I understand your statement, dragging a control onto a page
> does all the necessary registration - how much more automatic can you get
> ?
>
>
>
> "Teemu Keiski" <joteke@aspalliance.com> wrote in message
> news:OMcdvmCbGHA.3812@TK2MSFTNGP04.phx.gbl...
>> Certainly,
>>
>> mostly a matter of preference. On the other hand, it's nice to be able to
>> reegister via web.config since registration is automatically applied for
> new
>> pages as well.
>>
>> --
>> Teemu Keiski
>> ASP.NET MVP, AspInsider
>> Finland, EU
>>
http://blogs.aspadvice.com/joteke >>
>>
>> "gerry" <germ@nospam.nospam> wrote in message
>> news:esLiL%237aGHA.2372@TK2MSFTNGP03.phx.gbl...
>> > Am I missing something here ?
>> >
>> > I have a number of custom WebControls, the @ Register is added to the
> page
>> > and the dll copied to the bin folder automagically just by dragging the
>> > control onto a webform - zero manual intervention required.
>> >
>> > ???
>> >
>> > Gerry
>> >
>> >
>> >
>> >
>> > "Teemu Keiski" <joteke@aspalliance.com> wrote in message
>> > news:%23i3GuG7aGHA.1352@TK2MSFTNGP05.phx.gbl...
>> >> Hi,
>> >>
>> >> yes. It's been added that you can specify global control registration
> in
>> >> web.config (for your web app). For example:
>> >>
>> >> <pages>
>> >> <controls>
>> >>
>> >> <!-- Uses the specified source for the user control -->
>> >> <add
>> >> tagprefix="MyTags3"
>> >> tagname="MyCtrl"
>> >> source="MyControl.ascx"/>
>> >> </controls>
>> >> </pages>
>> >>
>> >> --
>> >> Teemu Keiski
>> >> ASP.NET MVP, AspInsider
>> >> Finland, EU
>> >>
http://blogs.aspadvice.com/joteke >> >>
>> >> "Alex Maghen" <AlexMaghen@newsgroup.nospam> wrote in message
>> >> news:7F451A48-C6F0-4533-A6CA-EF102B2FA39F@microsoft.com...
>> >> > Hi. In the shiny new ASP.NET 2.0, if you have a web project and you
>> > create
>> >> > a
>> >> > set of User WebControls, is there a way to set those controls so
>> >> > that
> I
>> >> > don't
>> >> > have to insert the whole
>> >> > <%@ Register tagprefix="XYZ" Tagname="MyControl"
>> >> > Src="~/BlahBlah/MyControl.ascx" %>
>> >> >
>> >> > at the top of every page in order to use the control on that page? I
>> >> > *think*
>> >> > I remember that there's a way of installing the control "globally"
> for
>> > the
>> >> > whole server machine. I really don't want to do that. I just want to
>> > make
>> >> > it
>> >> > accessible to the project without the whole ugly <%@Register tag.
>> >>
>> >>
>> >
>> >
>>
>>
>
>