Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All , I am using Angular JS with Asp.Net Web Forms, I have to apply validation using Angular Js on my input controls. As web forms can have only one form tag.
What will be the solution to have angular validation ob button click under such circumstances.

XML
<div>
    <form runat="server">
        <div>

// angular validation here
            <form>
<input input="text" ng-model="name" required/>
<input input="button" ng-click="name();"/>
            </form>
        </div>
    </form>
</div>


Warning:"form must not be nested in form"
Posted
Comments
Kornfeld Eliyahu Peter 27-Oct-14 9:59am    
1. Do not use ASPX page but plain HTML
2. Group controls using div/span and attach validation to them
SaadZulfiqar 27-Oct-14 10:09am    
What if the requirement is to use ASPX page ?? I am to find some solution with in ASPX page and apply Angular Validation ??

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900