Posted 14 years ago
by Doraiswamy
![Avatar](https://secure.gravatar.com/avatar/0b9a1b38f6122c8deb0f2f0da554c86a.jpg?s=64&d=identicon&r=g)
I am trying to do validation and i tried as the code given in the Actipro document
private void wizard_SelectedPageChanging(object sender, WizardSelectedPageChangeEventArgs e) {
if (e.OldSelectedPage == dataEntryPage) {
// some length validation
}
This is working fine if i click "Next" button but this validation occurs even while i use "Back" button.
Is there any way to restrict this?. I am trying to use WizardPageSelectionFlags to know whether back or forward page is requested but in vain?. Any suggestion please.
private void wizard_SelectedPageChanging(object sender, WizardSelectedPageChangeEventArgs e) {
if (e.OldSelectedPage == dataEntryPage) {
// some length validation
}
This is working fine if i click "Next" button but this validation occurs even while i use "Back" button.
Is there any way to restrict this?. I am trying to use WizardPageSelectionFlags to know whether back or forward page is requested but in vain?. Any suggestion please.