Solved

How to clear ASP Validation Summary when bootstap tab  is clicked

Posted on 2015-01-15
1
194 Views
Last Modified: 2015-01-19
I have a single web page with 2 tabs created with bootstrap.  The IDs are tab1,tab2

Each tab has its on controls and its own button to submit the form.  So web page has 2 validation summary controls 1 for each tab.    What I need to be able to do, client side through jquery hopefully is remove the items in the validation summary for the tab on am on when every I click the other tab.  See the summaries aren't in the tabs so they show until button is hit again, and I would like to clear on switching of the tab.

thanks in advance for the help
0
Comment
Question by:mgmhicks
1 Comment
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 500 total points
ID: 40553394
If you are not able to move the validation summaries onto their respective tabs, do you need to preserve the data on the tab that was displayed prior to clicking the tab button? If not, a page redirect will clear the validation summaries, as the page will fully reload. If you need to preserve the data, you could set the visible property of the control to false in the code behind. If you need to do it with jquery, you would be looking at using CSS to change the display property to none.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Button Css BootStrap 2 34
SharePoint 2013 List with Ratings 6 32
Name space syntax error 12 40
CSS z-index issue 3 20
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now