Member controls not working Options
msc
Posted: Monday, April 30, 2007 10:44:03 AM
Rank: Enthusiast

Joined: 4/20/2007
Posts: 25
Hi!

I'm having trouble getting member controls to work. I've created a login page, but when I visit it, I get an uncaught HttpException telling me that umbLogin4_TextBoxUserName should be in a form with runat=server.

I've tried installing from the umb package as well as from source, both with the same result. I have next to no experience hacking ASP.NET, so I'm not sure how to pursue this error. From the documentation and screencast it seems that the member controls should 'just work' with no tweaking on my part required. Any help would be appreciated.

Martin
mortenbock
Posted: Monday, April 30, 2007 11:32:53 AM

Rank: Addict

Joined: 7/19/2006
Posts: 821
Location: Århus, Denmark
You need to insert the form tages in your master template:

Code:

<?ASPNET_FORM></?ASPNET_FORM>


Example:
Code:

<html>
<head>
<title>Test of AspNetForm
tag</title>
</head>
<body>
<?ASPNET_FORM>
<?UMBRACO_MACRO
macroID="1"
useSomeFunkyRunAtServerStuff="true"/>
<?UMBRACO_TEMPLATE_LOAD_CHILD/>
</?ASPNET_FORM>
</body>
</html>


Read more here: http://umbraco.org/frontpage/documentation/reference/aspnetform.aspx

:-)

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

SoerenS
Posted: Monday, April 30, 2007 11:36:06 AM

Rank: Fanatic

Joined: 7/25/2006
Posts: 433
Location: Silkeborg, Denmark
This might be a long-shot, but it's usually what gets people into trouble in the beginning:

Have you modified the default templates?

Be sure that your page starts with the ?ASPNET_FORM tag and ends with /?ASPNET_FORM, fx the main template should contain something like this:
Code:

<html>
<body>
<?aspnet_form>
Your page here
<?UMBRACO_TEMPLATE_LOAD_CHILD/>
</?aspnet_form>
</body>
</html>


Brug for råd til hvordan du driver en god webshop? / Need advice on how to run an effective webshop?
msc
Posted: Monday, April 30, 2007 11:40:44 AM
Rank: Enthusiast

Joined: 4/20/2007
Posts: 25
It was the <?ASPNET_FORM></?ASPNET_FORM> tags that I overlooked. Well, there's one way of wasting a workday and a half...

Thanks a lot for your help, guys.

Martin
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.