You can only have one form with runat=server tag that is handled by asp.net so this is by behavior of asp.net add all logic within one form and all should be good.
Use the ValidationGroup property to specify different valdidation for different buttons.
And i have applied Validation group to 2nd "Demo Page controls".. But still its not working.. Working fine when i execute it in asp.net.. but when i add the same control in umbraco..it creates issue..
There is something wrong in your forms either an id, a multiple form on your page or a form in the macro is causing this. It's default behaviour of asp.net webforms. Maybe if you post all markup of the second not working form and all macro's someone can see the issue. Other than that it's best to check yourself in Visual studio.
.net Validation Controls not working in Umbraco
I am using two forms in umbraco, 1 form control(Validation+everything) is working fine..
But the other one with same coding is not working..
Please tell me the solution.
You can only have one form with runat=server tag that is handled by asp.net so this is by behavior of asp.net add all logic within one form and all should be good.
Use the ValidationGroup property to specify different valdidation for different buttons.
Cheers,
Richard
I have 2 pages..
1st is Home Page with this Macro
<form id="form" runat="server">
<h2><umbraco:Item field="contact-UsHeading" runat="server" /></h2>
<umbraco:Macro Alias="ContactUs" runat="server"></umbraco:Macro>
</form>
2nd is Demo Page with this macro
<form id="form2" runat="server">
<umbraco:Macro Alias="Demo" runat="server"></umbraco:Macro>
</form>
And i have applied Validation group to 2nd "Demo Page controls".. But still its not working.. Working fine when i execute it in asp.net.. but when i add the same control in umbraco..it creates issue..
I have the same issue as posted in
http://our.umbraco.org/forum/developers/api-questions/23917-Validation-groups-with-net-control-forms?p=0#comment166073
but by changing button ID's, its not working for me
Please help me out..its URGENT..
There is something wrong in your forms either an id, a multiple form on your page or a form in the macro is causing this. It's default behaviour of asp.net webforms. Maybe if you post all markup of the second not working form and all macro's someone can see the issue. Other than that it's best to check yourself in Visual studio.
Hope this helps,
Richard
is working on a reply...