Re: Why can't user controls be compiled into DLL and shared with other web applications
From: "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <Steve@xxxxxxx>
Date: Fri, 9 Mar 2007 04:20:24 -0800
That's what Custom controls are for. Custom controls have great
reusability, but they're kinda hard to make.
User controls are only reusable within a single project but they are easy to
make.
Pick your poison.
Does anyone know the technical reason why user controls couldn't be
compiled into an assembly and shared with other web applications.
If the ASP.NET compiler can compile the user control pages at runtime into
an assembly then why couldn't this be compiled and then shared with other
web applications. Perhaps we could write a module on top of ASP.NET which
could re use user controls in other web applications.
Re: Why cant user controls be compiled into DLL and shared with other web applications ...Matt Adamson wrote: ... Does anyone know the technical reason why user controls couldn't be compiled into an assembly and shared with other web applications. ... If the ASP.NET compiler can compile the user control pages at runtime into an assembly then why couldn't this be compiled and then shared with other web applications.... (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
Why cant user controls be compiled into DLL and shared with other web applications ... Does anyone know the technical reason why user controls couldn't be compiled ... into an assembly and shared with other web applications.... If the ASP.NET compiler can compile the user control pages at runtime into ... (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
Re: Why cant user controls be compiled into DLL and shared with other web applications ... Does anyone know the technical reason why user controls couldn't be ... compiled into an assembly and shared with other web applications.... If the ASP.NET compiler can compile the user control pages at runtime into ... I don't think it's a technical reason,... (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
Re: asp.net 2.0: Webcontrols in Library ...User controls are not designed to be used in a control library. ... For that level of reusability you should instead create custom controls.... (microsoft.public.dotnet.framework.aspnet.webcontrols)
Re: Performance between user controls and custom controls ... Custom Controls and User Controls have different purposes.... You can easily distribute your Custom Controls just by distributing the assembly but User Controls will always need the ASCX file. ... Also Custom Controls don't support visual development but User Controls do support it. ... (microsoft.public.dotnet.framework.aspnet.webcontrols)