Adding tag prefix

2 posts, 0 answers
  1. Katya
    Katya avatar
    21 posts
    Member since:
    May 2013

    Posted 23 Jul 2013 Link to this post

    Hi

    When I reference the Telerik DLL to an asp.net website, I need to add the tag prefix in each page. Today I installed the product and created a project using the Telerik Menu of Visual studio and found that I dont need to add tag prefix for the pages. Why?

    Thanks
    Katya
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Jul 2013 Link to this post

    Hi

    When you are creating a new Web Site or Web Application project using the Telerik  menu, the tag prefix is automatically added to the web.config file and hence you dont need to add the same in individual pages. In the first case you mentioned, you can add the tag prefix in the web.config file under the pages section as follows.

    XML:
    <pages>
        <controls>
            <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
        </controls>
    </pages>

    Thanks,
    Shinu.
Back to Top