I have configured Umbraco for .NET 3.5 with the "aspnet35.config" file available in the downloads and Umbraco is working fine. I am now trying to use the UpdatePanel control and have included a sample control with code below. My problem is that the UpdatePanel never seems to be refreshed when events are fired - ie clicking Button1.
UpdatePanel refresh issue
Hi
I have configured Umbraco for .NET 3.5 with the "aspnet35.config" file available in the downloads and Umbraco is working fine.
I am now trying to use the UpdatePanel control and have included a sample control with code below.
My problem is that the UpdatePanel never seems to be refreshed when events are fired - ie clicking Button1.
Any ideas? Thanks for your help.
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TestWebUsrCtrl.ascx.cs" Inherits="MyWork.WebControls.TestWebUsrCtrl" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MyWork.WebControls
{
public partial class TestWebUsrCtrl : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
this.TextBox2.Text = this.TextBox1.Text;
}
}
}
Other Info...
I'm using
Windows Server 2008 Service Pack 2 64-bit
IIS 7
Have set the above .NET User Control as a Macro
<umbraco:Macro Alias="UpdatePanelTest" runat="server"></umbraco:Macro>
which is placed in a child Template and the master Template has the usual
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" /> ........
Thanks.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.