Ajax Control Toolkit problem

I need to research this a bit more, but I will give a quick fix that I did.

So, I started an AJAX Web Application in Visual Studio 2008 and then added the latest Ajax Control Toolkit for 3.5.  I made a simple page and wanted to use the Auto Complete Control.  So, I added a simple text box and then added the Auto Complete Extender.  There was then a item to add the event of this control to your code behind.

I got this error:

Cannot create page method “GetCompletionList” because no CodeBehind or CodeFile was found.

I spent quite a few hours looking throuh solutions and couldn’t find anything that was of much help.

I decided to start over.  I created the application a little differently this time.  Instead of a new project, I started a New Web Site.  Repeated the same steps and it works fine.

UPDATE:
The problem has to do with VSWebProjectItem.  The standard AJAX Web Application with project file does not consider itself a “Web Project” and causes the AJAX toolkit to error.

Leave a comment ?

16 Comments.

  1. Grahame Horner

    Yes, I’ve got the same issue? Is there any fix for this?

  2. @Grahame

    Instead of creating a “Web Site” create a standard project.

    File..New..Project and not File..New..Web Site

  3. I am trying to use the AjaxControlToolkit in a ASP.NET Web Application and it won’t recognize me the ajaxtoolkit tags. I added the dll as a referece, but still no luck.

    Can you please help me?

    Thanks,

  4. You may need to add the reference to the ajax controls in your aspx page.

    <%@ Register assembly=”AjaxControlToolkit”
    namespace=”AjaxControlToolkit” tagprefix=”ajax” %>

  5. I’ve got the same issue. I created a new project (not website) and the reference is there however it was called “cc1″ instead of ajax :S I renamed it but it didn’t help.

  6. Here’s an explaination for the issue… This is going to ruin my whole school project!! :@

    http://ajaxcontroltoolkit.codeplex.com/WorkItem/View.aspx?WorkItemId=11837&FocusElement=CommentTextBox

  7. first add that dll file into c:/windows/microsoft.net folder.Then open VS2010,
    right click "General" tab in toolbox -> add tab. give an appropriate name, then right click on it and click "choose items", then browse to the path where the dll file resides. and click ok.

  8. I tried creating a project and also a web site. I also tried reinstalling the AjaxControlKit DLL. Unfortunately I’m still getting the same error. Has anyone had any luck solving this?

  9. i am having a problem in creating the controls of ajax.The problem is in creating the control at design the draging of control is not creating but at source while the control is dragged it is creating.

  10. Excelent, problem solved, thanks :)

  11. sir,

    i have one problem use ajax in vs2008 bcoz which setting change give me my email id,and how to use in some controls plz send vedio upto installing ajaxcontroltoolkit to how to use practically……….

    please……………………………
    send video of how to install and how to use

  12. hi… what solved the problem?? i have the same issue!

  13. Hi Captastic , how did you solve the problem??

  14. I have downloaded in ajax control tool kit3.5 and uploaded in .net 2008 env successfully. Afterward, i have used simple calender control in sampleWebsite/sampleProject. I able view the textbox in IE/Firebox browser env but calender extender control is not working. Similarly, any ajax controls are not supported in IE/Firebox browser.

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


    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="True"
    TargetControlID="TextBox1">
    </cc1:CalendarExtender>

    and i have added the below comments in web.config file
    <pages>
    <controls>
    <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="cc1"/>

    Please help me to sort out this problem

    Thanks in advance

  15. i have another problem and need ASAP help plzz

    i’m using ajax calendar in my application and i have error in it
    i have repeated days in April 2011 month specially after 28 i have created new dll and i deploy the calendar still i have the same problem
    please need any solution

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>