Posted on: 6/10/2011 3:44:13 AM | Views : 348

Hi,
I have WebProject published on server. So, there is no codefiles, only dll. All controls in project are inherited from my class.
Now I want to append on server new UserControl(no include into project), but I want to inherit from my class.
When I try create .aspx:
<%@ Control Language="C#" AutoEventWireup="true" ClassName="CustomControl" Inherits="CustomControl" CodeBehind="~/App_UserControls/CustomControl.ascx.cs" Src="~/App_UserControls/CustomControl.ascx.cs" %> Hello and create .aspx.cs file:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace MyApp.App_UserControls { public partial class CustomControl : MySpecialUserControl { } }
It doesn't work, becasue:
Typ MyApp.MySpecialUserControl exists in c:\Windows\Microsoft.NET\Framewor ...

Go to the complete details ...