Richtextbox - how to ref after put in web.config

Discussion in 'ASP.NET / ASP.NET Core' started by nature, Jan 20, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. after I have added the reference in the web.config file for richtextbox, how do I reference it in the page?
    e.g. web config has the following:
    <compilation>
    <assemblies>
    <add assembly="AspNetEmail, Version=3.0.0.0, Culture=neutral, PublicKeyToken=bc571e8da1c1f543"/>
    <add assembly="RichTextBox, Version=2.5.0.0, Culture=Neutral, PublicKeyToken=17b15412cfbf13c1"/>
    <add assembly="aspNetMX, Version=1.0.0.2, Culture=Neutral, PublicKeyToken=bc571e8da1c1f543"/>
    </assemblies>
    </compilation>

    How do I reference it in the page?

    Thisdoesn't compile.
    <RTB:RICHTEXTBOX id="RichTextBox1" runat="server" Width="80%" Height="200px" HtmlOutputChangeAbsoluteURLsToRelative="false"></RTB:RICHTEXTBOX>
     
  2. Easiest way is to add the component to the Toolbox, so from memory I dont have access to .Net at the moment, Right Click Toolbox, and browse for the DLL and add it to the Toolbox, once you see the new icon in the Toolbox, just drag and drop it onto the ascx/aspx, this will register the control on the page for one, which you have not done, the drag and drop will do that automatically for you, you can do it manually if you want to but I cant remember the exact syntax.


    Adding the DLL as a Solution reference will also add the DLL into the assemblies, you dont need to do these things manually if you dont want to.


    that should be it.


    cheers
    Michael
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page