PC Review


Reply
Thread Tools Rate Thread

ASP.NET 3.5 AJAX problem

 
 
mazdotnet
Guest
Posts: n/a
 
      1st Feb 2008
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/li...TutorialIntro5


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>
-----------------------------------------

Thx
M.
 
Reply With Quote
 
 
 
 
Angel
Guest
Posts: n/a
 
      1st Feb 2008
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.
--
aaa


"mazdotnet" wrote:

> 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/li...TutorialIntro5
>
>
> 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>
> -----------------------------------------
>
> Thx
> M.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET AJAX samples... I am looking for help with HoverMenu AJAX Toolbox control. JDeats Microsoft ASP .NET 1 5th Oct 2007 08:50 PM
Ajax en the Form_load event and Ajax in serveruser controls =?Utf-8?B?VG9u?= Microsoft ASP .NET 2 22nd Jun 2007 10:16 AM
ASP.NET and AJAX: JavaScript files from the Microsoft AJAX Library Nathan Sokalski Microsoft ASP .NET 2 2nd Jun 2007 01:07 AM
ASP.NET AJAX Enabled Website Web.config error (newbie to AJAX) Tony K Microsoft ASP .NET 2 4th May 2007 05:23 AM
Deploying ASP.NET AJAX-Enabled Web site to host without AJAX insta =?Utf-8?B?QnJpYW4gRWR3YXJkcw==?= Microsoft ASP .NET 2 21st Feb 2007 10:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:24 AM.