Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed help on creating Custom Controls Asp.Net 3.5
    primarykey
    data
    text
    <p>I am looking for a link to instructions or a walkthru for Creating Custom Controls in Asp.net 3.5. </p> <p>I have already looked at the following : </p> <p><a href="http://forums.asp.net/t/1385382.aspx" rel="nofollow noreferrer">http://forums.asp.net/t/1385382.aspx</a> : Turning an .ascx User Control into a Redistributable Custom Control asp.net 3.5 </p> <p><a href="http://msdn.microsoft.com/en-us/library/aa479318.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/aa479318.aspx</a> : Turning an .ascx User Control into a Redistributable Custom Control asp.net 2.0 </p> <p>I think the two above links are for Composite Custom Controls which would be fine for now, as it seems it is easier to make a Composite rather than a full Custom control. </p> <p>As per the instructions in the above link ( aa479318 ) , I created a user control MyControl.ascx file and published it, which was compiled it into a self contained .dll which was named App_Web_MyControl.ascx.cdcab7d2.</p> <p>Then I put a </p> <pre><code>&lt;%Register Assembly="App_Web_MyControl.ascx.cdcab7d2" TagPrefix="cc" namespace="TheNamespace" %&gt; </code></pre> <p>in the aspx file (in another app) where I wanted to use the Custom Control, and I add a reference to the .dll assembly in the project. </p> <p>The CustomControl name is not being recognized when I try creating it in the .aspx code by </p> <pre><code>&lt;cc:MyControl ID="idname" runat="server" /&gt; </code></pre> <p>I get error Element 'MyControl' is not a known element.' </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload