Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 729107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:45:32+00:00 2026-05-14T06:45:32+00:00

I have 3 div tags. Each having no. of textboxes and button. Each textbox

  • 0

I have 3 div tags. Each having no. of textboxes and button. Each textbox having validation. For all button causesvalidation property is true. If I click “button1” in “div1” tag will cause validation of other textbox in other div tags. I don’t want to do this. How to avoid this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:45:33+00:00Added an answer on May 14, 2026 at 6:45 am

    Set the ValidationGroup property of the elements in each div to a separate validation group.

    Example:

    <asp:TextBox ID="TextBox1" runat="server" ValidationGroup="Div1"></asp:TextBox>
    <asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="Div1"></asp:Button>
    <asp:RequiredFieldValidator ControlToValidate="Textbox1" ValidationGroup="Div1" ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
    
    <asp:TextBox ID="TextBox2" runat="server" ValidationGroup="Div2"></asp:TextBox>
    <asp:Button ID="Button2" runat="server" Text="Button" ValidationGroup="Div2"></asp:Button>
    <asp:RequiredFieldValidator ControlToValidate="Textbox2" ValidationGroup="Div2" ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
    
    <asp:TextBox ID="TextBox3" runat="server" ValidationGroup="Div3"></asp:TextBox>
    <asp:Button ID="Button3" runat="server" Text="Button" ValidationGroup="Div3"></asp:Button>
    <asp:RequiredFieldValidator ControlToValidate="Textbox3" ValidationGroup="Div3" ID="RequiredFieldValidator3" runat="server" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have many <div> tags separate from each other. They all have this layout:
I need to use jQuery to locate all DIV tags that have no attributes
I have the code that's below. Each of the div tags is set by
I have an article, and each article has tags. Right now I call all
I have a couple of div tags nested within each other and a few
I have 5 div tags with the same class. Each div tag has a
If I have 2 div tags: <div id=parentDiv> <div id=childDiv><!-- other html --></div> <!--
I have a site that has 2 DIV tags, one floats left the other
In my case, i have some div and img tags. I am applying draggable
I have two span tags inside two divs inside a master div <div> <div>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.