Click here to Skip to main content
Rate this: bad
good
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"%>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head  runat="server">
    <title></title>
</head>
<body>
    <form id="form1"  runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>
 
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 20:27pm
Edited 18-Apr-13 20:36pm
v2
Comments
Karthik Harve at 19-Apr-13 2:36am
   
[Edit] pre tags added.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Right click on toolbox==>select "Choose item"==>select"Browse"==>select .Dll==>add
  Permalink  
Rate this: bad
good
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.
--Amit
  Permalink  
v2
Comments
Member 9993473 at 20-Apr-13 1:11am
   
@@Amit
I performed the above steps. But still can not drag n drop the ajax control from the toolbox.Its really very urgent
_Amy at 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 at 20-Apr-13 1:29am
   
@@_Amy
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 at 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 at 20-Apr-13 1:37am
   
@@_Amy
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 at 20-Apr-13 1:49am
   
@@_Amy
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
0 OriginalGriff 255
1 Maciej Los 225
2 Manfred R. Bihy 190
3 CHill60 180
4 _Amy 155
0 OriginalGriff 7,395
1 Sergey Alexandrovich Kryukov 6,163
2 Maciej Los 3,754
3 Peter Leow 3,448
4 CHill60 2,702


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 19 Apr 2013
Copyright © CodeProject, 1999-2014
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