Adding Ajax toolkit to web.config so it can be used throughout a project

I would like to add the following to Web.config so the Ajax toolkit is available to my whole project because this is part of a tutorial I'm following from an ebook.

<pages theme="Blue">
    <add tagPrefix="atk" namespace="AjaxControlToolkit"
        assembly="AjaxControlToolkit" />

In our Web.config file there is no controls tag so I tried to add the controls tag and get an error telling me it is expecting child element controls. I'm assuming these child element controls are indicated by ⋮ in the ebook.

Can you tell me what child element controls need to be added so I can add the tagPrefix?


Ok, I changed this answer because your code looks just fine , assuming you have page and control in <system.web> , also have you added AjaxControlToolkit in your bin folder?

    <add assembly="Subtext.Web.Controls"
            tagPrefix="st" />
    <add src="~/Controls/SomeControl.ascx"
            tagPrefix="st" />

Need Your Help

Is it possible to generate all possible terms findable in a ternary search tree?

c# .net algorithm reverse-engineering ternary-search-tree

From what I understand of ternary search trees, they are inverse deterministic in the items that can be sought and found (not sure about correct terms). What I mean, if you create a ternary tree fo...

How to debug dynamically defined functions in Python?

python debugging dynamic

Is there a way to debug a function that is defined dynamically in run time?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.