ASP.NET 3.5 AJAX problem

M

mazdotnet

Hi all,

I've just upgrade our site to the latest asp.net 3.5 using visual
studio 2008. However, I can not get the AJAX component to work
properly. My application runs fine but it keeps doing a postback on
the whole page when testing AJAX. I tried this Microsoft example as
well and same thing problem. Any idea what could be the problem? It
compiles fine but no

My code was taken from http://asp.net/ajax/documentation/live/ViewSample.aspx?sref=UpdatePanelTutorialIntro5


My code -----------------------------------------------

<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="Test_ajax_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
</head>
<body>

<form id="form1" runat="server">
<asp:ScriptManager id="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel id="UpdatePanel1" UpdateMode="Conditional"
runat="server">
<ContentTemplate>
<fieldset>
<legend>Parent UpdatePanel</legend>
Last refresh <%=DateTime.Now.ToString() %> <br />
<asp:Button ID="Button1" runat="server" Text="Refresh
Outer Panel" />
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<fieldset>
<legend>Nested UpdatePanel</legend>
Last refresh <%=DateTime.Now.ToString() %>
<br />
<asp:Calendar ID="Calendar1" runat="server"></
asp:Calendar>
</fieldset>
</ContentTemplate>
</asp:UpdatePanel>
</fieldset>
</ContentTemplate>
</asp:UpdatePanel>


</form>
</body>
</html>
 
A

Angel

I think it could be a framework target issue. Remember that VS2008 can target
multiple Frameworks and it will behave differently depending on the target.
Point you old application to 2.0 instead and see if it work. Bear in mind
that is you are using the toolkit you will need the 3.5 version of it as
well. It is freaky the toolbox controls just disappear because its the 2.0
version.

Other than this I can't think of anything else.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top