Validation Groups and Wizard step

B

bhavesh

hi David,

If u r using ASP.NET 2.0 then u can have the validationgroup property
of button.

so For Ex.

If you have following two requiredfield validators...

<asp:reqfva id="test1" runat="server" validationgroup="Group1"
controltovalidate="txt1">
<asp:reqfva id="test1" runat="server" validationgroup="Group2"
controltovalidate="txt2">

now if u will define a button like

<asp:button id="button1" runat="server" Text="test"
validationgroup="Group1">

Now when u will press "test" button then u will get ur validator firing
for only txt1.

execuse for syntax.

hop this will help.

u can ask for any further query.
 
W

Walter Wang [MSFT]

Dave,

You could define your own controls for the step navigation template:

<StepNavigationTemplate>
<asp:Button ID="prevButton" runat="server"
CommandName="MovePrevious" Text="Prev" />
<asp:Button ID="nextButton" runat="server"
CommandName="MoveNext" Text="Next" ValidationGroup="Test" />
</StepNavigationTemplate>


===============
#Wizard.StepNavigationTemplate Property (System.Web.UI.WebControls)
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.wizard.st
epnavigationtemplate.aspx

The StepNavigationTemplate object that is contained in the
StepNavigationTemplate property must contain two IButtonControl controls,
one with its CommandName property set to "MoveNext" and one with its
CommandName property set to "MovePrevious", to enable the navigation
feature.

===============


Hope this helps.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

Walter Wang [MSFT]

Good solution. Thank you for sharing in the community.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top