Saturday, March 24, 2012

Atlas to Ajax 1.0 Upgrade Nightmare

I am trying to upgrade my website from the Atlas release to Ajax 1.0 and can't seem to get it working.

I have removed all references to Atlas from my pages and my Web.Config file. I then added the asp:ScriptManager and asp:UpdatePanel from scratch. However, now no matter what I try I get a full page refresh. Here is a snippet of my code, I'm hoping I just left something out and that someone picks it up:

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

<asp:UpdatePanelID="UpdatePanel1"runat="server">
<ContentTemplate>
<asp:DropDownListID="City"runat="server"SkinID="RegularDropDown"><asp:ListItemValue=""Text="City/Town"/></asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTriggerControlID="County"EventName="SelectedIndexChanged"/>
</Triggers>
</asp:UpdatePanel>

Here is a snippet from my Web.Config file:

<pages>

<controls>
<addtagPrefix="asp"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<compilationdebug="true">
<assemblies>
<addassembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<addassembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<addassembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>

Thanks in advance for any help,
Russ

Hi Zero,

Three things worth checking:

1 - Is theAsyncPostBackTrigger ControlID supposed to be 'Country' or 'County'.

2 - Have you tried setting the UpdateMode property of the UpdatePanel?

3 - Have you removed the following line from the top of your page:
<%@.RegisterAssembly="Microsoft.Web.Atlas"Namespace="Microsoft.Web.UI"TagPrefix="atlas" %>

Not sure if these are the source of your problem but can't hurt to try.

Good Luck,
DJH


Hi Russ,

Here is a link which describes the things to do when you are converting from an Atlas project to an Ajax project:

http://ajax.asp.net/documentation/Migration_Guide_CTP_to_RTM.aspx

Hope this helps!

Regards,


Exactly what I needed, thank you for the link to the migration guide.

I just used the new Web.Config file and copied my variables over to it and it seemed to fix the problem.

Thanks again,
Russ

No comments:

Post a Comment