D
David Bowey
Hi There!
Typically I can register a user control for a page using...
<%@ Register TagPrefix="myControls" Src="controls/test.ascx" TagName="test"
%>
But how do I "register" a user control so that it can be assessable from ALL
pages in the current website? Are there any configuration settings in the
web.config file that I set for this?
Creating a Custom Control (with compiled DLL) is not an option for this
project. However, I have the option to create my own base class but I have
no idea how to include a User Control from that base class. I know I can use
"LoadControl" function but I need the design-time support.
For example, a user should be able to set control's properties in an ASPX
page like this...
<myControl:test id="test1" runat="server"
myProperty1="test"
myProperty2="test"></myControl:test>
without having to declare "Register" directive at the top of the page. So
"LoadControl" is no go.
Any pointers will be much appreciated!
Dave
Typically I can register a user control for a page using...
<%@ Register TagPrefix="myControls" Src="controls/test.ascx" TagName="test"
%>
But how do I "register" a user control so that it can be assessable from ALL
pages in the current website? Are there any configuration settings in the
web.config file that I set for this?
Creating a Custom Control (with compiled DLL) is not an option for this
project. However, I have the option to create my own base class but I have
no idea how to include a User Control from that base class. I know I can use
"LoadControl" function but I need the design-time support.
For example, a user should be able to set control's properties in an ASPX
page like this...
<myControl:test id="test1" runat="server"
myProperty1="test"
myProperty2="test"></myControl:test>
without having to declare "Register" directive at the top of the page. So
"LoadControl" is no go.
Any pointers will be much appreciated!
Dave