I learned that in umbraco, we have to use a master template for a custom user control. I have a custom form and a submit button. I created a control that sends an email once the 'submit" button is pressed. the control basically gets all the fields like name, address. It works when I create a new template and insert the macro.
However when I try to use it with a master template, it does not work. The submit button refreshes the page but never goes to my c# part where it sends the mail
and if I do this
<form name="myform" target="_self" method="post" action="index">
it goes to the index page, but no email is sent.
But it works on a clean or new template. Is there a way to use custom control with master template in umbraco 4 EDIT - This is how I am using macro
<form name="myform" target="_self" method="post" action="index">
<umbraco:Macro Alias="sendMail" runat="server"></umbraco:Macro>
</form>