Showing posts with label latest. Show all posts
Showing posts with label latest. Show all posts

Wednesday, March 28, 2012

ASP.net AJAX throws errors in some browsers

These browsers are:

Mozilla (latest version)
Seamonkey (latest version)
Netscape (latest version)

See this error message:

AJAX error in diverse browsers

Has anyone encountered the same problems in the mentioned browsers? I couldn't check Mac browsers, any known issues in Mac browsers would be interesting too.
Any other browsers that don't like the asp.net AJAX?

This is normallly because you modify the response by using Response.write.Make sure you use a Literal control instead of using response.write.

Mac browsers will have the same error.

It's also possible that the error is caused by Tracing where the pageoutput is set to true. You must set that to false.
<traceenabled="true"requestLimit="128"pageOutput="false"traceMode="SortByTime"localOnly="false"/>


Hi Richard,

thanks for your reply. So I may not use <%= WhateverString %> neither, right? I can't use Response.Write in my code behind files and neither in the "HTML" source code, is that what you are saying?

Steve


Hi Steve,

Yes that is what I meand. I hope it helped you.


To be clear, <%= is just an alias for Response.Write; so there's no differnece at all once it compiels. If it helps, you *can* use Response.Write, just not inside an UpdatePanel, nor as part of any code that will be subject to responding to an update panel's asynch postback.

Monday, March 26, 2012

ASP.NET AJAX and AtlasUIMap

I've been trying to use the AtlasUIMap in the latest version of ASP.NET Ajax and am having problems. The error I get:Assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not contain a Web resource with name 'Microsoft.Web.Resources.ScriptLibrary.AtlasUIMap.js'.

I've tried a number of different things including changing the name from AtlasUIMap to AjaxUIMap, I've searched the ScriptLibrary folder, and so on and am not finding the Map UI anymore. Has this been removed from the latest release?

Here's the code that errors:

<ajax:ScriptManager ID="ScriptManager1" runat="server">
<Scripts>
<ajax:ScriptReference Name="AjaxUIMap.js" />
</Scripts>
</ajax:ScriptManager>

Thanks,

Scott

hello.

i think that is correct, ie, it has been removed from this version.


Thank you. I hope they add it back in, I would like to test out this functionality.