Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
ASP.NET
<%@ 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
Updated 18-Apr-13 20:36pm
v2
Comments
Karthik Harve 19-Apr-13 2:36am    
[Edit] pre tags added.

Right click on toolbox==>select "Choose item"==>select"Browse"==>select .Dll==>add
 
Share this answer
 
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:
HTML
<%@ 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
 
Share this answer
 
v2
Comments
Telstra 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 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.
Telstra 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 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. :)
Telstra 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?

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900