Click here to Skip to main content
12,756,892 members (37,982 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET Ajax
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="aLWAYSvISIBLE.WebForm1" %>

<%@   Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"  TagPrefix="asp"%>

This is my source code for default.aspx page. I allready register a ajax toolkit in web form. But when i drag n drop the control from toolbox it doesn't appear on the designer page.What should I register now and how? how to register ajax toolkit in web forms to use them?
Posted 18-Apr-13 21:27pm
Updated 18-Apr-13 21:36pm
Karthik Harve 19-Apr-13 2:36am
[Edit] pre tags added.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Right click on toolbox==>select "Choose item"==>select"Browse"==>select .Dll==>add
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

First you need to add the reference of AjaxControlToolkit dll[^].
Follow the steps to add the reference :
Right Click on Project in Solution Explorer.
Click on Add Reference in cascading menu.
Click on Browse tab
Locate your dll.
Click on OK.

Now register the assembly:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp"%>

Then try dragging and dropping the controls.

NOTE: The dll versions should be same which you added in toolbox and referenced in solution explorer.
Member 9993473 20-Apr-13 1:11am
I performed the above steps. But still can not drag n drop the ajax control from the toolbox.Its really very urgent
_Amy 20-Apr-13 1:15am
Follow the steps below:
Delete the Dll from bin folder.
Reset the toolbox. --> Right Click on toolbox and Riset.
Remove @Register directive from page.
Add the items in toolbox freshly.
Now try Dragging and Dropping the controls.
Member 9993473 20-Apr-13 1:29am
I don't have ajax control toolkit's dll in bin folder. When I right click on bin folder then there is no option like add reference. How to add reference to bin folder in vs 2010 web project?
Thanks for interest and your help will appreciate
_Amy 20-Apr-13 1:32am
This means that you installed ajaxcontroltoolkit setup. Anyway, locate the dll file in your c:\Program Files folder and add the reference. And follow one of the above steps. :)
Member 9993473 20-Apr-13 1:37am
Sorry but there no option like add reference when i right click on the bin folder. Then how I can add dll in bin folder?
Member 9993473 20-Apr-13 1:49am
I added reference to the entire project by right clicking on project name->add reference->ajaxcontrol.dll. But still not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 19 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100