Do not use on any
shared computer
August 21, 2008 05:32pm pdt
 
[x]
Attachment Details

Issue when use validationsummary in ajax tabpanels ?

Hi

How do I fix this problem.

I have a tabcontainer with several tabpanels.

In every tabpanel I have RequiredfieldValidators and validationsummary.

The problem grove up, when I try the the functions of RequiredfieldValidators in one single tabpanel.
THEN the singel validationsummary show all RequiredfieldValidators, from all tabpanels:

HOW do I isolate the validationssummary to show only the the single tabpanels RequiredfieldValidators ???

I try the updatepanel but how to I set it up in my code down here.

my code:



<asp:FormView ID="FormViewLocation"

OnItemInserted = "FormViewLocation_Inserted" runat="server" CellPadding="4"

DataKeyNames="LocationID" DataSourceID="LocationFormView"

DefaultMode="Insert" Width="300px" Font-Bold="False" >


<FooterStyle BackColor="#5D7B9D" Font-Bold="True"

HorizontalAlign="Center" />

<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />

<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />


<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />

<InsertRowStyle BackColor="#F7F6F3" BorderColor="#999999" BorderStyle="Solid" />

<HeaderTemplate>Add New</HeaderTemplate>

<EditRowStyle BackColor="#999999" />


<InsertItemTemplate>

<tr>

<td width="40%" style="border-style: none none none solid; border-color: #C0C0C0; border-left-width: 1pt; background-color: #F7F6F3; border-left-style: solid; border-left-width: 1px; border-left-color: #C0C0C0;"></td><td width= "60%" style=" border-right-style: solid; border-right-width: 2px; border-right-color: #E0E0E0; background-color: #F7F6F3; color: #FF0000;" align="left"><b>* Required Field</b>

</td>

</tr>


<tr>

<td width="40%" style="border-style: none none none solid; border-color: #C0C0C0; border-left-width: 1pt; background-color: #F7F6F3;">Location:</td><td width= "60%" style="border-right-style: solid; border-right-width: 2pt; border-right-color: #E0E0E0; background-color: #F7F6F3;" align="left"><b style="color: #FF0000">*</b>

<asp:TextBox ID="LocationLocationNameFormTextBox" runat="server" Text='<%# Bind("LocationName") %>' />

<asp:RequiredFieldValidator ID="RFVLocationFormLocationName" Display="Dynamic" runat="server" ErrorMessage="You need to enter a Location Name" ControlToValidate="LocationLocationNameFormTextBox" ValidationGroup="FormView" Text="*" Font-Size="Medium"></asp:RequiredFieldValidator>

</td>

</tr>


<tr>

<td width="40%" style="border-style: none none none solid; border-color: #C0C0C0; border-left-width: 1pt; background-color: #F7F6F3;" >Abbrev.: </td><td width="60%" style="border-right-style: solid; border-right-width: 2pt; border-right-color: #E0E0E0; background-color: #F7F6F3;" align="left"> <b style="color: #FF0000">*</b>

<asp:TextBox ID="LocationAbbrevFormTextBox" runat="server" Text='<%# Bind("LocationAbbreviation") %>' />

<asp:RequiredFieldValidator ID="RFVLocationFormLocationAbbreviation" runat="server" ErrorMessage="You need to enter a Abbrevviation" ControlToValidate="LocationAbbrevFormTextBox" ValidationGroup="FormView" Display="Dynamic" Text="*" Font-Size="Medium"></asp:RequiredFieldValidator>

<asp:RegularExpressionValidator ID="REVexpLocationFormAbbreviation" runat="server" ErrorMessage="You need to enter min/max, one - five character under Abbreviation" ValidationExpression="^\d*[aA-zZ]{1,5}$" ValidationGroup="FormView" ControlToValidate="LocationAbbrevFormTextBox" Display="Static" Font-Size="Medium" Text="*"></asp:RegularExpressionValidator>

</td>

</tr>



</InsertItemTemplate>


</asp:FormView>




<br>

</br>

<asp:Label ID="LocationLabelInsertMessage" runat="server"></asp:Label>



<asp:ValidationSummary ID="ValidationSummaryLocationform" runat="server"

ValidationGroup="FormView" />


</div>
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Programming
Question Asked By: jyllan
Solution Provided By: raterus
Participating Experts: 1
Solution Grade: C
Views: 53
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by raterus

Rank: Genius

Expert Comment by raterus:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by jyllan
Author Comment by jyllan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by raterus

Rank: Genius

Expert Comment by raterus:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by jyllan
Author Comment by jyllan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by raterus

Rank: Genius

Accepted Solution by raterus:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by jyllan
Author Comment by jyllan:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628