I am looking for a link to instructions or walkthru to create custom controls in Asp.net 3.5.
I have already considered the following:
http://forums.asp.net/t/1385382.aspx : Including the .ascx user element in asp.net 3.5 Redistributable User Control
http://msdn.microsoft.com/en-us/library/aa479318.aspx : Including a .ascx user element in an asp.net 2.0 Redistributable User Control
I think the two links above are for Composite Custom Controls, which would be great at the moment, since it seems to be easier to make a Composite, rather than a complete user control.
Following the instructions in the link above (aa479318), I created the MyControl.ascx control file and published it, which was compiled into a standalone .dll, which was named App_Web_MyControl.ascx.cdcab7d2.
Then i put
<%Register Assembly="App_Web_MyControl.ascx.cdcab7d2"
TagPrefix="cc" namespace="TheNamespace" %>
in the aspx file (in another application), where I wanted to use Custom Control, and add the link to the .dll assembly in the project.
CustomControl name is not recognized when trying to create it in .aspx code using
<cc:MyControl ID="idname" runat="server" />
I get an error. The 'MyControl' element is not a known element. ''
source
share