What I usually do is creating a usercontrol the I place the logincontrol onto that usercontrol and use the usercontrol as a Macro. Then you can change the loginbutton text by.
Or if you don't want the hassle of creating the user control as Richard is suggesting, you could write this piece of code into the template that contains the login control
dictionary item into asp:login control
Hello all,
In the template I was trying to insert a Dictionary item but with no luck:
<asp:Login
ID="Login1"
runat="server"
LoginButtonText="<umbraco:Item field='#loginButton' runat='server'></umbraco:Item>">
</asp:Login>
Any suggestions how could it be solved?
Thanks.
Hi,
What I usually do is creating a usercontrol the I place the logincontrol onto that usercontrol and use the usercontrol as a Macro. Then you can change the loginbutton text by.
Hope it helps you,
Richard
Or if you don't want the hassle of creating the user control as Richard is suggesting, you could write this piece of code into the template that contains the login control
<script runat="server"> protected void Page_Load(object sender, EventArgs e) { Login1.LoginButtonText.Text = umbraco.library.GetDictionaryItem("loginButton"); } </script>Cheers,
/Dirk
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.