how we can implemented Validation without using form tag?? RRS feed

  • Question

  • <div class="input-group mar-btn">
                        <span class="input-group-addon"><i class="fa fa-phone"></i></span>
                        <input type="text" class="form-control input-lg" name="user.Phone" id="userphone" placeholder="Phone">
                    <div class="input-group mar-btm">
                        <span class="input-group-addon"><i class="fa fa-user"></i></span>
                        <input type="text" class="form-control input-lg" name="Username.Name" placeholder="Name">
    • Moved by Fei Hu Tuesday, March 27, 2018 7:25 AM Asp.Net related
    Monday, March 26, 2018 2:00 PM

All replies

  • Why you need validation when you don't want to submit the forms?

    I will recommend you to use form tags. or if you have any specific situation please mention so that I may answer it properly.

    Monday, March 26, 2018 5:40 PM
  • Hello Anas,

    According to your question is more related to Asp.Net, you could repost a thread to Asp.Net forum for better support.

    If you have some grammar or code errors in using C#, please feel free to contact us. We will try our best to give you a solution.

    Best Regards,

    Neil Hu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Edited by Fei Hu Tuesday, March 27, 2018 7:24 AM
    Tuesday, March 27, 2018 7:23 AM