Solved

How to clear ASP Validation Summary when bootstap tab  is clicked

Posted on 2015-01-15
1
191 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

746 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

12 Experts available now in Live!

Get 1:1 Help Now