Unless you have changed the template engine to run in webforms mode nothing will happen. By default in v7 MVC is being used. Carlos Martinez have written a tutorial on how to create a contact form using MVC in Umbraco here http://carlosmartinezt.com/2014/06/umbraco-7-and-mvc-contact-form/
Yeah, that's an option - But not advisable if you have been building a lot on a site already :) And I don't think it's that's it's future proof since the trend is leaning more and more towards to MVC rather than using WebForms.
But if you just started out and have not done that much on your site yet then it's a fine solution for now. But when the time is right for you I think you'll benefit from learning to use MVC rather than WebForms.
Remember to mark the topic as solved so others can benefit btw :)
Contact Control doesn't work!
Hello Comunity,
i'm using umbraco version 7.1.8 for a week now and I've got a problem.
I'm trying to add a contact control to my contact page and everytime I'm clicking on the send button nothing is going to be send.
The problem is that if I click on the button, the btn_Send method doesnt get invoked.
What i tried?
- aspbutton with onclick
- deactivated all scripts/styles
In Umbraco I've added a macro which is refrenced to the ascx file.
My contactpage has a richtext editor where ive added this macro.
What am I doing wrong? Code below!
Thank you for helping me!
This is my ascx file.
This is the code behind.
Hi David and welcome to our :)
Seems like you're using a webforms user control?
Unless you have changed the template engine to run in webforms mode nothing will happen. By default in v7 MVC is being used. Carlos Martinez have written a tutorial on how to create a contact form using MVC in Umbraco here http://carlosmartinezt.com/2014/06/umbraco-7-and-mvc-contact-form/
Hope this helps!
/Jan
Hi Jan,
thank you very much for your answer!
Yes I'm using a webforms user control and I fixed it now!
I just changed the following line in the umbracoSettings.config to:
And I created a new template where i just pasted the old template code in. This works!
Thank you again! :)
Hi David
Yeah, that's an option - But not advisable if you have been building a lot on a site already :) And I don't think it's that's it's future proof since the trend is leaning more and more towards to MVC rather than using WebForms.
But if you just started out and have not done that much on your site yet then it's a fine solution for now. But when the time is right for you I think you'll benefit from learning to use MVC rather than WebForms.
Remember to mark the topic as solved so others can benefit btw :)
Cheers, Jan
is working on a reply...