Error when trying to configure public access. Options
ChristophS
Posted: Monday, February 04, 2008 3:33:09 PM
Rank: Devotee

Joined: 2/4/2008
Posts: 38
Hi,

I have this couple of example pages in Umbraco content.

There's a page called Products and I'm trying to secure this page.

Firt I made a page 'Sign in' which is based on a template also called 'Sign in'. The macro 'Member login' from the MemberControls package is included in this template.

Back to the Products page then: I'm securing this via the 'Public access' option. I add a member group there. I set the login and error page to the 'Sign in' page I created before.

But, when I go see the home page and I click on the 'Products' page so that it would redirect me to the 'Sign in' page, I get an ASP.Net error. This one:

Control 'umbLogin_1_TextBoxUserName' of type 'TextBox' must be placed inside a form tag with runat=server.

When I go check the umbLogin.ascx page in the folder C:\Inetpub\wwwroot\usercontrols\umbracoMemberControls, everything seems allright. 'Runat=server' is present, so I don't really see the problem here?

Someone who can help me?

drobar
Posted: Monday, February 04, 2008 3:37:18 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,697
Location: KY, USA
In the template, be sure your content is inside a <?ASPNET_FORM> ... </?ASPNET_FORM> tag.

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
ChristophS
Posted: Monday, February 04, 2008 3:59:47 PM
Rank: Devotee

Joined: 2/4/2008
Posts: 38
Douglas Robar wrote:

In the template, be sure your content is inside a <?ASPNET_FORM> ... </?ASPNET_FORM> tag.

cheers,
doug.


Thanks for the tip. But it's still not working :s.

When I put everything in the template between those tags, it is still giving me the same error. However when I put the tags around the code of the included macro, it gives me another error which is much longer and more complicated. I've taken a screenshot of it: click here.

Thanks for help.
ChristophS
Posted: Monday, February 04, 2008 4:03:45 PM
Rank: Devotee

Joined: 2/4/2008
Posts: 38
OK. The problem is solved now :).
Problem was a question mark missing in the closing tag.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.