OK, i got it working. I added <form runat="server">, had tried that before, but this time around it worked.... :/ Have no idea why i didn't work before, but there you go.
Thanks for the help, it might be a combination of your help and the added form tag that did the trick.
Umbraco 7 usercontrol
Hi everyone
Currently implementing a website using Umbraco 7. I have a Usercontrol containing a three textboxes and a submitbutton (a simple contactform).
When I place the generated Macro onto a page and then want to test it, it fails when it reaches the first textbox.
Any ideas?
Code on ascx:
Codebehind is not doing anything, I just want to see the textboxes before I move on.
Thomas,
Umbraco 7 sets the default render engine to MVC. If you want to use usercontrols I think you have to set te render engine to use webforms.
You can change the setting in config/umbracosettings.config:
Nope, that didn't change anything, Any other ideas?
Can you post what the template and macro looks like?
OK, i got it working. I added <form runat="server">, had tried that before, but this time around it worked.... :/ Have no idea why i didn't work before, but there you go.
Thanks for the help, it might be a combination of your help and the added form tag that did the trick.
is working on a reply...