Using AJAX Extensions in an ASP.Net Web App

Last post 06-01-2009 11:46 AM by Pawan_Mishra. 5 replies.

Sort Posts:

  • Using AJAX Extensions in an ASP.Net Web App

    06-01-2009, 8:48 AM

    Hey Guys,

     I currently have an ASP.Net Web Application and would like to use the TabContiner control from the AJAX Extension is an asp web form, I jus drag and drop the control and when I 'build' it I am getting an 'assembly that is not referenced, that I must add a reference to the assembly'. I then drop a script manager in the body of the page then got an namespace error.

    How it is possible to use AJAX Extension in an asp web app without creating an entire ajax application?

     Thanks

  • Re: Using AJAX Extensions in an ASP.Net Web App

    06-01-2009, 9:16 AM
    • All-Star
      120,566 point All-Star
    • XIII
    • Member since 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 13,376
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Hi,

    could it be that you're using .NET 2.0? If so and you started from a web application instead of a ajax template project then you must install the ASP.NET AJAX Extensions but also later on change the web.config of your existing web application. Take a look here on how to do that: http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx.

    Grz, Kris.

  • Re: Using AJAX Extensions in an ASP.Net Web App

    06-01-2009, 9:28 AM

    Yes i am using asp.net 2.0 and I have already install the AJAX extension. so I would just need to change the wed.config file now only?

  • Re: Using AJAX Extensions in an ASP.Net Web App

    06-01-2009, 9:39 AM
    Answer
    • All-Star
      120,566 point All-Star
    • XIII
    • Member since 06-30-2002, 11:59 PM
    • Essen, Belgium
    • Posts 13,376
    • ASPInsiders
      Moderator
      TrustedFriends-MVPs

    Hi,

    yes that would be the thing to do. What I mostly did in the past is create a new ajax based web application and use a tool like winmerge to compare the things missing in the web.config of the older application to integrate it. Easier and faster. Just a tip.

    Grz, Kris.

  • Re: Using AJAX Extensions in an ASP.Net Web App

    06-01-2009, 9:45 AM

    ok great, will let you know if it worked

  • Re: Using AJAX Extensions in an ASP.Net Web App

    06-01-2009, 11:46 AM
    Answer
    • Star
      8,433 point Star
    • Pawan_Mishra
    • Member since 03-13-2008, 7:37 AM
    • Bangalore
    • Posts 1,249

     Hi

     If you are converting an existing asp.net application into an asp.net ajax enabled application then like mentioned before you need to modify the webconfig and also you need to add the respective ajax dlls to your application bin folder ie add System.Web.Extension.dll to your application bin folder . If in case you want to use toolkit controls then you also need to add the ajaxControlToolkit dlls to your application.

    Regards
    Pawan Mishra

    Too many eyes doesn't make a good code !!!

    .Net 360°
Page 1 of 1 (6 items)