Sunday, January 9, 2011

How to add AJAX control tool kit into ASP.NET web project correctly


First of all you need to download the "AjaxControlToolkit.dll". You can find it on http://www.asp.net/ajax/AjaxControlToolkit/Samples/ .

Then you need to add this library into your web project. Add it to the “Bin” folder. Then it will be look like this.



Then you need to add the following tag in between the “controls” tags at the web.config file of the project.
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
 
Now you can use the AJAX controls in your web project.
<ajaxToolkit:ModalPopupExtender ID="mpePopup" runat="server" TargetControlID="lnkDummy" PopupControlID="pnlPopup" Enabled="true">
</ajaxToolkit:ModalPopupExtender>

Good Luck!!!
Happy Programming :)

No comments:

Post a Comment