ExpaliCliepay
New Member
I want to refresh a user control in UpdatePanel, but I would also like to refresh it with different property values.\[code\]<asp:UpdatePanel runat=server ID=up1><Triggers> <asp:AsyncPostBackTrigger controlid="but01" eventname="Click" /> </Triggers><ContentTemplate><asp:Button runat="server" Text="Test" ID="but01" /> <UC:Uc runat=server ID="Uc1" /></ContentTemplate></asp:UpdatePanel>Codebehind for but01 click isvoid but01_Click(object sender, EventArgs e){this.Uc1.ID = 1;this.Uc1.Length = 50;}\[/code\]I tested this code, and the user control is being refreshed, but new values ID=1, Length=50 are not applied.