Click here to Skip to main content
15,868,030 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to use ajaxcontroltoolkit controls in my page.I want to use this assembly by referencing it's source path in the page(not from any bin folder).but don't know exactly how.i know about page directive but can't implement.the reason i want to use the assembly by referencing it from any location becoz i will use it in the dnn module.it's not works when multiple versions of the assembly is in the bin folder for different modules.so adding the assemblies in a page from a location will work.

<%@ Register Assembly="AjaxControlToolkit" Src="~/desktopmodules/mymodule/Documentation/AjaxControlToolkit.dll" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:UpdatePanel ID="up1" runat="server">

    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="up1">
    <progresstemplate><div style="text-align: left;"><asp:Image ID="imageprogress" runat="server" ImageUrl="~/desktopmodules/mymodule/images/green_line_e0.gif" Width="200" Height="15" /></div></progresstemplate> 
<div    runat="server" id="wholemain">
   
    <asp:Label ID="testlabel" runat="server" Text="tests" />
   

    <asp:Panel ID="Nonusercomment2" CssClass="useraddcommentstyle" Font-Size="9"  runat="server">     
    codes hidden here....
          
    <ajaxToolkit:CollapsiblePanelExtender  ID="CollapsiblePanelExtender1" Collapsed="true" TargetControlID="Nonusercomment2" CollapseControlID="testlabel" ExpandControlID="testlabel"    runat="server">
Posted
Updated 11-May-11 2:56am
v2
Comments
Karthik. A 10-May-11 13:50pm    
Your question is pretty unclear. You have assemblies to exactly solve this problem. So that you need not copy over the source files (for ajaxcontroltoolkit) in every project. But why do you want the source files and copy it over? Of course, you could get the source from the ajax control toolkit website. But I don't see your point here.
mridul samadder 11-May-11 4:20am    
if you know dotnetnuke content management system.there are modules for dotnetnuke.a module is a separate asp.net project.if i use ajaxcontroltoolkit assembly by referencing it in my module ascx page then when module installed the assembly is placed in the dotnetnuke site's bin folder to use.so if accidently another module is installed with different ajaxcontroltoolkit version then the assembly will be replaced with later version.so my first module ajaxcontroltoolkit functionality will not work.so if there is any technique to use the assembly in page by referencing it from a location then i will not let it place in bin folder.look my page codes in the reply below-
Keith Barrow 10-May-11 16:56pm    
Your question is not at all clear, can you paste your ASPX markup so we can see what you have done?
mridul samadder 11-May-11 4:24am    
look at the codes i tried to use in my page by accessing the assembly from a location[snip: Keith Barrow]
Keith Barrow 11-May-11 8:58am    
Don't reply with the code it is unreadable this way! "Improve" (the green link) your question and add the code there,and wrap it in pre tags so it formats better. I have done this for you.

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