The user control contains required field validators, that should appear only on a button click. That behavior works fine when the form is run from visual studio. However when used within umbraco, it shows validation errors the first time macro is rendered on the page.
Below is how the validator is added in .ascx form
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtName" Display="Dynamic" ErrorMessage="Your name is required" Font-Size="11px" ForeColor="Red" SetFocusOnError="True"></asp:RequiredFieldValidator>
Question: Field validations inside user control render when a page is loaded
I'm adding a .Net user control in a template like this: (note, I've also tried adding in RTE - but that has its own issue)
The user control contains required field validators, that should appear only on a button click. That behavior works fine when the form is run from visual studio. However when used within umbraco, it shows validation errors the first time macro is rendered on the page.
Below is how the validator is added in .ascx form
Is there a way to fix this?
Screen shot (when macro is used within umbraco):
Btw: I am on umbraco v 4.7.0 (Assembly version: 1.0.4090.21631)
is working on a reply...