Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi!
I'm tried to add the following into a template:
<asp:LoginName ID="LoginName1" runat="server" />
Works fine. However it does not work fine when I add this:
<asp:LoginStatus ID="LoginStatus1" runat="server" />
I get this error:
Control 'ContentPlaceHolderDefault_cp_top_LoginStatus1' of type 'LoginStatus' must be placed inside a form tag with runat=server.
Ofcourse the control is already in a form, since I put it right after the first one that works.
Any ideas?
Hi,
The loginname control doesn't require a form runat=server tag, the loginstatus control does. So check, double/triple check that your control is rendered inside the form runat=server tag.
Cheers,
Richard
You are so right! I was mislead from the fact that LoginName was working!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Cannot use LoginStatus control on a template
Hi!
I'm tried to add the following into a template:
Works fine. However it does not work fine when I add this:
I get this error:
Control 'ContentPlaceHolderDefault_cp_top_LoginStatus1' of type 'LoginStatus' must be placed inside a form tag with runat=server.
Ofcourse the control is already in a form, since I put it right after the first one that works.
Any ideas?
Hi,
The loginname control doesn't require a form runat=server tag, the loginstatus control does. So check, double/triple check that your control is rendered inside the form runat=server tag.
Cheers,
Richard
You are so right! I was mislead from the fact that LoginName was working!
is working on a reply...