Hi, I'm using ajax in my content page which contain several control in page. It could be like dropdownlist, button,gridviewand radiobuttonlist. All control is working find except the radiobuttonlist, it always do the postback. Since I'm using master page to control all content page, I have no idea why is not functioning? Therefore, I create a single page without inherit the masterpage, the radiobuttonlist is working. So is it the masterpage problem? Part of the code: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <atlas:UpdatePanel ID="UpdatePanel1" runat="server"> <Triggers> <atlas:ControlValueTrigger ControlID="RadioButtonList" PropertyName="SelectedValue" /> <atlas:ControlEventTrigger ControlID="Button" EventName="Click" /> <atlas:ControlValueTrigger ControlID="DropDownList" PropertyName="SelectedValue" /> </Triggers> <ContentTemplate> . . </ContentTemplate> </atlas:UpdatePanel> </asp:Content> Any help will be appreciate. Calvin
Hi, Atlas? Are you using older/outdated Ajax binaries? Try doing the same thing without the updatepanel, just a normal aspanel instead. Salute, Mark
Single page without inherit master page where postback without "Refresh the whole page" HTML Code: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Settings_TimeTable_Default" %> <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> <!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"> <title>Test RadioButtonList Page</title> </head> <form id="form1" runat="server"> <atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True"> <ErrorTemplate> Something Wrong to Script Manager </ErrorTemplate> </atlas:ScriptManager> <atlas:UpdatePanel ID="UpdatePanel1" runat="server" Mode="Conditional"> <ContentTemplate> <asp:RadioButtonList ID="rblTest" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rblTest_SelectedIndexChanged" RepeatDirection="Horizontal"> <asp:ListItem>Hide</asp:ListItem> <asp:ListItem>UnHide</asp:ListItem> </asp:RadioButtonList>&nbsp; <asp:Label ID="lblMsg" runat="server" Text="Test Partial Rendering"></asp:Label> </ContentTemplate> </atlas:UpdatePanel> </form> </body> </html> Code Behind: Partial Class Settings_TimeTable_Default Inherits System.Web.UI.Page Protected Sub rblTest_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Select Case rblTest.SelectedValue Case "Hide" lblMsg.Visible = False Case "UnHide" lblMsg.Visible = True End Select End Sub End Class ------------------------------------------------------------------------- A page inherit master page where postback "Refresh the whole page" HTML Code: <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Copy of Default.aspx.vb" Inherits="Settings_TimeTable_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <atlas:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate> <div id="progressBackgroundFilter"></div> <div id="processMessage"> <asp:Image ID="ImgLoading" runat="server" SkinID="ImgLoading" /> </div> </ProgressTemplate> </atlas:UpdateProgress> <atlas:UpdatePanel ID="UpdatePanel1" runat="server" Mode="Conditional"> <ContentTemplate> <asp:RadioButtonList ID="rblTest" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rblTest_SelectedIndexChanged" RepeatDirection="Horizontal"> <asp:ListItem>Hide</asp:ListItem> <asp:ListItem>UnHide</asp:ListItem> </asp:RadioButtonList>&nbsp; <asp:Label ID="lblMsg" runat="server" Text="Test Partial Rendering"></asp:Label> </ContentTemplate> </atlas:UpdatePanel> </asp:Content> Code Behind: Partial Class Settings_TimeTable_Default Inherits System.Web.UI.Page Protected Sub rblTest_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Select Case rblTest.SelectedValue Case "Hide" lblMsg.Visible = False Case "UnHide" lblMsg.Visible = True End Select End Sub End Class
Oh, I omit to upload this part, but it still not working! ..... </ContentTemplate> <Triggers> <---Omitted Part <atlas:ControlValueTrigger ControlID="rblTest" PropertyName="SelectedValue" /> </Triggers> </atlas:UpdatePanel>
Hi, It still looks to me that you are using old libraries for Ajax. Have you cleaned out the old versions and installed the new versions? You can get it here, plus Videos and sample code: http://www.asp.net/ajax/ajaxcontroltoolkit/ Salute, Mark
Thanks for help. Finally found the solution. Since I'm migrate from ASP.NET 1.1 to 2.0 , I have no observe there is a field inside the web.config, which is <xhtmlConformance mode="Legacy"/>, so I remove the code from the file. Reference: "Don't use <xhtmlConformance mode="Legacy"/> with ASP.NET AJAX " http://weblogs.asp.net/scottgu/archive/2006/12/10/gotcha-don-t-use-xhtmlconformance-mode-legacy-with-asp-net-ajax.aspx