Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a label in the master page

<asp:Label ID="lblLogName" runat="server">

I have created a public property

Public Property LoginName As String
Get
Return lblLogName.Text
End Get

Set(ByVal value As String)
lblLogName.Text = value
End Set
End Property

I have written the page directive in the content page

<%@ MasterType VirtualPath="~/Site.Master/>

But the following code does not change the label text. Pls Help

Master.LoginName = LabelName.Text
Posted
Updated 27-Aug-15 21:49pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900