473,698 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with ValidationSumma ry/Validation groups and Wizards

Hi there,

Please please could someone shed some like on a problem that I'm having
using a combination of Wizards, ValidationGroup s and ValidationSumma ry
controls. What I want to do is to have a wizard that will take me through
several steps, and at each step validate input data using
RequiredFieldVa lidators etc. displaying any errors in a Validation Summary.
The problem that I have is that I cannot seem to have a ValidationSumma ry
control on each step of the wizard and get client side validation to take
place. If I remove the summary control from the second step of the wizard,
then all is well and client side validation takes place.

I've broken the problem down to it's most simple form see code below which
demonstrates the problem.

I've struggled for many hours to track the problem down to this, so I'm
hoping that some kind person can show me the error of my ways or provide an
acceptable work around. I do need to have the summary panel on each step
though, so thinking caps on..

Thanks in advance

Andy
<h1>If you can leave the edit control empty and click on the next button
then the client side validation is NOT working!</h1>

<asp:Wizard ID="Wizard1" runat="server" DisplaySideBar= "false">

<WizardSteps>

<asp:WizardSt ep runat="server" Title="Step 1">

</asp:WizardStep>

<asp:WizardSt ep runat="server" Title="Step 2">

</asp:WizardStep>

</WizardSteps>

<StartNavigatio nTemplate>

<asp:Label ID="_lblPostCod e" runat="server"
AssociatedContr olID="_txtPostC ode">PostCode: </asp:Label>

<asp:TextBox ID="_txtPostCod e" runat="server"> </asp:TextBox>

<asp:RequiredFi eldValidator ID="RequiredFie ldValidator1" runat="server"
ControlToValida te="_txtPostCod e"

ErrorMessage="A postcode need is required and must be in the form BN43 5HF."
ToolTip="A postcode is is required."

ValidationGroup ="_register" >*</asp:RequiredFie ldValidator>

<asp:Button ID="Button1" runat="server" Text="Next" CommandName="Mo veNext"
ValidationGroup ="_register"/>

<asp:Validation Summary ID="changePassw ordSummary" runat="server"
ValidationGroup ="_register" />

</StartNavigation Template>

<FinishNavigati onTemplate>

<asp:Label ID="_lblExpiry " runat="server"
AssociatedContr olID="_txtExpir y">Expiry:</asp:Label>

<asp:TextBox ID="_txtExpiry " runat="server"> </asp:TextBox>

<asp:RequiredFi eldValidator ID="RequiredFie ldValidator2" runat="server"
ControlToValida te="_txtExpiry "

ErrorMessage="A card expiry date is required and must be in the form MM/YY."
ToolTip="A card expiry date is required."

ValidationGroup ="_expiry">* </asp:RequiredFie ldValidator>

<asp:Button ID="Button2" runat="server" Text="Finished"
CommandName="Mo veEnd" ValidationGroup ="_expiry"/>

<asp:Validation Summary ID="changePassw ordSummary" runat="server"
ValidationGroup ="_expiry" />

</FinishNavigatio nTemplate>

</asp:Wizard>


May 4 '06 #1
0 1800

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1989
by: John Mabbott | last post by:
Hello all, We're getting some weird behavior with the ValidationSummary control. If I submit a page that fires some validators, the ValidationSummary displays them correctly. However, if I subsequently submit the page, the ValidationSummary control briefly disappears before re-appearing again! So, to recap: 1. I load one of my pages 2. I don't fill any of the input boxes and submit the page, causing
1
1871
by: CGuy | last post by:
Hi, I have the following code in my aspx page <form id="Form1" method="post" runat="server"> <asp:TextBox ID="txtTest" Runat="server" /> <asp:RequiredFieldValidator ID="valText" ControlToValidate="txtTest" Runat="server" Text="*" Display="Dynamic" ErrorMessage="Enter Value" /> <asp:ValidationSummary DisplayMode="BulletList" Runat="server"/> <asp:Button Text="Submit" ID="Submit" Runat="server"/>
3
4958
by: Christer | last post by:
Hi all! I recently created a MessageBox webcontrol for asp.net. This can be used as is, but I also want to take ude of it in other webcontrols. Right now i creating a ValidationSummary control, that makes use of my messagebox to show the summary of failing validators. So far I've been successfull achieving this. However, the serverside nature of the MessageBox currently forces all validators (and the validationsummary) to have...
2
1368
by: TIBM | last post by:
Hi. I've posted this question on another newsgroup, but I haven't received any answers.. I have a login page where users input userID and password and click a Login button. Before calling the login functions, I have to check the user ID and the password for invalid data. It works well in IExplorer, but it doesn't show the validation summary (displayed in a Javascript alert box) in Netscape. This is what I have in the asp page: ...
2
2429
by: Sunil Sabir | last post by:
Dear All, I am using ValidationSummary,RequiredField Validator and Regular Expression Validator in my ASP.net form. I want to display error messages only in the ValidationSummary Control. But when I run the form the messages are displayed ValidationSummary,RequiredField Validator and Regular Expression Validator together . Is it possible that the message is displayed only in ValidationSummary control and not in RequiredFieldValidator...
1
2453
by: Dan Sikorsky | last post by:
I'm using SmartNavigation and need to automatically scroll to the top of the page when the ValidationSummary control catches errors and displays them, so that the user can see the errors without having to manually scroll to the top. How can I determine if the ValidationSummary will display errors so that I can issue a javascript window.scrollTo(0,0) or document.body.scrollTop = 0 (or something more appropriate) to automatically scroll to...
1
3912
by: Ken Varn | last post by:
If a page has multiple ValidationSummary controls, how does it distinguish which ValidationControls are associated with which ValidationSummary controls? The reason I am asking this is that I want to display a Message Box for the validation message on my Validation controls. My validation control is embedded within a custom server control. If my custom server control adds a ValidationSummary control, I am afraid that it may conflict...
3
1630
by: dei1c3 | last post by:
I've created a WebUserControl which is Composite Control. It includes several controls including a few RangeValidator controls and a ValidationSummary control. The WebUserControl works properly in most situations, but I've discovered a problem when I place 2 or more of these controls on the same page. Basically, the ValidationSummary control on each of the WebUserControls seems to be displaying error messages for RangeValidators on ALL...
2
6282
by: c676228 | last post by:
Hi, I have several user controls like email, phone,ssn etc. each has it's own validation message in its user control already. When I bring all those user controls in an aspx page, I would like to display a summary error messages using validation summary in an aspx page, how to do that? Thank you. -- Betty
0
9170
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.