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
|
 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:-)
|
 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?
|
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
|