HighTechTalks DotNet Forums  

how can I reference a user control from a page class?

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss how can I reference a user control from a page class? in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Harper Trow
 
Posts: n/a

Default how can I reference a user control from a page class? - 12-14-2007 , 04:04 PM






I am trying to reference a user control from a custom page class that all of
my other pages inherit from. Since the base page class is just a class file
with no aspx partial, I cannot use a @Register directive to register the user
control with the page class. I tried adding the user control to the
web.config so that all pages have access without the @Register directive, but
this did not allow me to reference the user control class name in my page
class, only pages with aspx UI partials. Is there any way to reference a
user control in a custom page class?

Thanks,

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.