This is a migrated thread and some comments may be shown as answers.

All control auto postbacks are suppressed after upgrade to .NET 4.0

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bing Fu
Top achievements
Rank 1
Bing Fu asked on 31 May 2012, 04:02 PM

Yesterday, I upgraded our C# ASP.NET solution from .NET 2.0 to .NET 4.0. Other things work fine. But all auto postbacks are suppressed after that.

Our telerik controls are kind of out dated. But because of project timeline, we don’t have time to upgrade our telerik controls for now. I just checked, our RadAjax.Net2 runtime version is v2.0.50727. Out Telerik.Web.UI runtime version is also v2.0.50727.

The following is the code. As you can see with my comments, the drop down list inside the RadAjaxPanel does Not do postback after I select a different value in the list. But the drop down list outside of the RadAjaxPanel works fine.
And this problem is not just for drop down list. It’s for other controls such as radio button DateTimePicker etc. But our buttons are working fine. So it looks like it's the autoposts are suppressed.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Position.ascx.cs" Inherits="Oaccac.WebPmi.Controls.Position" %>
<%@ Register TagPrefix="rad" Namespace="Telerik.WebControls" Assembly="RadAjax.Net2" %>
<%@ Register Src="~/Controls/TelerikAjax/LoadingPanelContent.ascx" TagPrefix="uc" TagName="LoadingPanelContent" %>

<rad:RadAjaxPanel ID="ajaxServiceOfferPanel" LoadingPanelID="ajaxServiceOfferLoadingPanel" runat="server" UseEmbeddedScripts="true" EnableOutsideScripts="true">
<!--This DropDownList does Not do post back.-->
<asp:DropDownList ID="ddlTest" runat="server" AutoPostBack="true">
    <asp:ListItem>One</asp:ListItem>
    <asp:ListItem>Two</asp:ListItem>
</asp:DropDownList>
</rad:RadAjaxPanel>

<!--This DropDownList does post back.-->
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true">
    <asp:ListItem>Three</asp:ListItem>
    <asp:ListItem>Four</asp:ListItem>
</asp:DropDownList>

<rad:AjaxLoadingPanel ID="ajaxServiceOfferLoadingPanel" runat="server" InitialDelayTime="0">
 <uc:LoadingPanelContent ID="loadingServiceOfferPanelContent" runat="server" />
</rad:AjaxLoadingPanel>

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 05 Jun 2012, 08:40 AM
Hello Bing,

Please note that the old classic RadControls for ASP .Net are not supported with .Net 4.0 framework and we could not guarantee their proper functionality in this case. I would suggest you to update your controls to the latest official release of RadControls for ASP .Net Ajax which provides dll version for .Net 4.0.  Give this a try and let us know if ay issues appear during or after the upgrade.

Greetings,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Bing Fu
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or