|
-
Sep 8th, 2008, 10:49 PM
#1
Thread Starter
Fanatic Member
ASP.net Control help
Hey there.
right im having an issue that i cant figure out why it does not work.
i have a web project, called "Common", which contains server controls and other common items i will use in my other web projects in the solution.
in this project i have a class which renders javascript files to be added to the webpage. so it is basically a class, "JavaScriptInjectionControl", that inherits from System.Web.UI.Control.
Now in my other project in my solution i add a reference to the library (dll) produced by my Common project.
Now here i have a UserControl in which i want to add the JavaScriptInjectionControl to my servercontrol.
To do this i modify the web.config file to add the assembly
<add assembly="Common" namespace="Common" tagPrefix="adfc"/>
Now i go back to my UserControl and in the design mode i can see <adfc:JavaScriptInjectionControl> in the intellisense.
Everything looks great.
so i add <adfc:JavaScriptInjectionControl id="jsic1" runat="server"></adfc:JavaScriptInjectionControl>
My problem is that when my user control runs it does not implement this JavaScriptIngectionControl and i have no idea why.
Everything seems fine, i get no compile or runtime errors, my webpage just doesnt seem to render it.
(If i add a usercontrol into my project that implements the server control from the common project add this to my webpage it works!!!!)
Thanks for any help
Last edited by Strider; Sep 8th, 2008 at 10:53 PM.
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|