Skip to content

Commit 7f14d85

Browse files
janjonasbdukes
authored andcommitted
DNN-6281 Fixed label property ControlName
1 parent ebb2191 commit 7f14d85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DNN Platform/Library/UI/UserControls/LabelControl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ protected override void OnPreRender(EventArgs e)
271271
var c = Parent.FindControl(ControlName);
272272
if (c != null)
273273
{
274-
//label.Attributes["for"] = c.ClientID;
274+
label.Attributes["for"] = c.ClientID;
275275
}
276276
}
277277
}

Website/controls/labelcontrol.ascx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%@ Control Language="C#" AutoEventWireup="false" Inherits="DotNetNuke.UI.UserControls.LabelControl" %>
22
<div class="dnnLabel">
3-
<label>
4-
<asp:Label ID="lblLabel" runat="server" EnableViewState="False"/>
3+
<label ID="label" runat="server" EnableViewState="false">
4+
<asp:Label ID="lblLabel" runat="server" EnableViewState="False" />
55
</label>
66
<asp:LinkButton ID="cmdHelp" TabIndex="-1" runat="server" CausesValidation="False"
77
EnableViewState="False" CssClass="dnnFormHelp">

0 commit comments

Comments
 (0)