AJAX in VWD 2008 Express SP1 - no errors installing or building but doesn't work

Last post 01-12-2009 9:14 AM by jfosc. 4 replies.

Sort Posts:

  • AJAX in VWD 2008 Express SP1 - no errors installing or building but doesn't work

    01-07-2009, 10:27 AM
    • Member
      point Member
    • jfosc
    • Member since 01-07-2009, 10:12 AM
    • Posts 3

    I'm following one of the examples from the O'Reilly book ASP.NET 3.5 with AJAX and having problems.  I've upgraded to .NET 3.5 SP1, Visual Studio Express 2008 SP1, and I'm using the AJAX 3.5 SP1 toolkit (installed per the instructions).  I've made reference to the .dll in my project, installed the .vsi for the templates, and added the toolbar and the tools show up.  I can drag them in with no problems and build the project successfully.

    However, when I run the project the AJAX piece doesn't work although I've followed the code exactly in the book example.  I sent my project to our company's Chief Architect and it works just fine in his "as-is" (VS 2008 Pro).  In my box, it doesn't appear as if it's generating the client-side code because there's no javascript and the page is not functioning like it should.  I have an update panel and in the update panel a text box, a button, and a label and using the ConfirmButtonExtender.

    Can anyone shed some light as to where I should be looking?   I receive no errors - it just doesn't work when I run it.

    Thanks in advance.

  • Re: AJAX in VWD 2008 Express SP1 - no errors installing or building but doesn't work

    01-09-2009, 3:10 AM
    Hi jfosc,

    If another machine can run the code well, I can only guess the reason is from yours. Maybe your explorer disabled some functions of the JavaScript or some third party components conflicted with the AjaxControlToolkit.

    To test it, I recommend you have a look at the samples of the AjaxControlToolkit: http://www.asp.net/ajax/ajaxcontroltoolkit/samples/

    Get the tutorial video and code from this link:http://www.asp.net/learn/ajax-videos/

    Wish you good luck!

    Zhi-Qiang Ni

    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as
    Answer” if a marked post does not actually answer your question.
  • Re: AJAX in VWD 2008 Express SP1 - no errors installing or building but doesn't work

    01-09-2009, 10:17 AM
    • Member
      point Member
    • jfosc
    • Member since 01-07-2009, 10:12 AM
    • Posts 3

    I had followed instructions verbatim on several sites (Codeplex, ASP.NET, various blogs, etc) explaining how to install AJAX and tried it on another machine before I posted, so I knew it was something wonky with my machine before I even posted.  I was hoping for some insight as to what to actually look for on my machine (configuration, conflicts, etc) that could be causing the problem.  I apologize if I wasn't clear.

    After posting the original I did some further investigation.  I moved the code under my local IIS installation on my laptop and it works fine.  Seems that the built-in web server to Visual Studio 2008 Express doesn't like AJAX? Does anyone know of any problems with this?  Incidentally, the developer who ran my code on his box is using VS2008 Pro (I'm using VS2008 Express) and his ran fine under the VS2008 Pro built-in web server.  Is there a difference between the built-in web server between the Pro and Express versions?

  • Re: AJAX in VWD 2008 Express SP1 - no errors installing or building but doesn't work

    01-11-2009, 10:07 PM
    Answer

    Hi,

    After  searching the documentation of the  VisualStudio2008  ProductComparison, I found that the Express Edition does not support some functions of the Ajax. 

     

    Here is detail: http://www.microsoft.com/downloads/details.aspx?FamilyID=727BCFB0-B575-47AB-9FD8-4EE067BB3A37&displaylang=en

    So, you may install the AjaxControlToolkit until using the correct edition.

    Best regards,

    Zhi-Qiang Ni

    Microsoft Online Community Support

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as
    Answer” if a marked post does not actually answer your question.
  • Re: AJAX in VWD 2008 Express SP1 - no errors installing or building but doesn't work

    01-12-2009, 9:14 AM
    • Member
      point Member
    • jfosc
    • Member since 01-07-2009, 10:12 AM
    • Posts 3

     Zhi-Qiang,

     Thanks for your reply and the link to the product comparison matrix.  As I mentioned in my last post, AJAX pages were building w/out errors but weren't being rendered properly when I was using the built-in web server that comes with Visual Studio Express.  When I moved it under my local IIS install, AJAX was rendered properly so it seems as if there's a problem with the built-in VS2008Express web server's ability to render the proper HTML/Javascript to send to the browser.  The first two items in the matrix above deal with just the addition of the project templates for creating AJAX sites in the IDE (by virtue of installing the .vsi file) but that wouldn't impact the capability of the built-in web server.

    Since I worked-around my problem by using IIS to serve the applications, every AJAX page I've created is working.  I believe the problem is in the built-in web server - has anyone come across this in the Express edtion or is there a known configuration change that will fix it?

Page 1 of 1 (5 items)