Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > control loading question...

Reply
Thread Tools

control loading question...

 
 
Ashish
Guest
Posts: n/a
 
      12-18-2003
hi all,
according to my understanding ( and i may be wrong ) a control is loaded
as a seperate assembly when a page is loaded, and the control is loaded
when loader sees the <% @register %> tag,
my sitiuation is that i want to reduce the number of assemblies loaded
per page to improve performance and resource usage, and the pages are
highly dynamic and configurable in nature i.e a control might not be
there on the page at all
the way iam handling is by setting the visible property

i wanna know if it is possible to use loadcontrol without using <%
@register %> tag, and would it save me from some object creation per page ?

any help or thoughts would be appreciated

TIA
-ashish

 
Reply With Quote
 
 
 
 
Kelly Leahy
Guest
Posts: n/a
 
      12-18-2003
>i wanna know if it is possible to use loadcontrol
without using <%
>@register %> tag, and would it save me from some object

creation per page ?

It seems to me that you can, as long as you don't need
strong typing of the controls. You could, for instance,
if your controls act similarly, make a single interface
that you use to get to the common properties, and then
implement that interface on all of your controls, so that
when loading them dynamically, you don't need to import
the assemblies at compile time (since the interface would
presumably be declared in some common assembly referenced
by all of the controls).

Kelly Leahy
 
Reply With Quote
 
 
 
 
Ashish
Guest
Posts: n/a
 
      12-18-2003
Kelly Leahy wrote:

>>i wanna know if it is possible to use loadcontrol

>
> without using <%
>
>>@register %> tag, and would it save me from some object

>
> creation per page ?
>
> It seems to me that you can, as long as you don't need
> strong typing of the controls. You could, for instance,
> if your controls act similarly, make a single interface
> that you use to get to the common properties, and then
> implement that interface on all of your controls, so that
> when loading them dynamically, you don't need to import
> the assemblies at compile time (since the interface would
> presumably be declared in some common assembly referenced
> by all of the controls).
>
> Kelly Leahy

hey thanks kelly,
i was also wondering if you cold provide some inside into if this would
provide some performance and resource benefits,
right now if i see the aspnet_wp dumo , i see a lot of controls there
which i can really do without in the app, if i dynamically load em,

do you think it saves memory and reduces load time, or would the loader
load it just by seeing <@reference > directive

TIA
-ashish

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
order of iframe loading with document loading ofir Javascript 0 12-03-2007 12:06 PM
loading image -> detect when image is done loading edfialk Javascript 0 05-10-2007 07:28 PM
[OT] Is loading the second Java application faster than loading the first? David Segall Java 2 01-02-2007 04:41 PM
Image loading using javascript. Handling timeouts and parrallel loading under IE zborisau@gmail.com Javascript 4 08-28-2005 02:02 PM
Dynamic control array loading, can't unload control/replace with o =?Utf-8?B?Y2luZHk=?= ASP .Net 2 06-08-2005 03:54 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57