This is a migrated thread and some comments may be shown as answers.

Adding tag prefix

1 Answer 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Katya
Top achievements
Rank 1
Katya asked on 23 Jul 2013, 08:11 AM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Jul 2013, 09:09 AM
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.
Tags
General Discussions
Asked by
Katya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or