如何拒绝移动到下一个WizardPage在.net中? [英] How to deny the move to the next WizardPage in .net?

查看:152
本文介绍了如何拒绝移动到下一个WizardPage在.net中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的向导控制在V​​S 2008我搜索了下一个按钮编码从net.vI想,如果用户ID和密码不匹配,那么向导页不能移动到下一个步骤。

I am using Wizard control in VS 2008. I searched the next button coding from net.vI want that if user id and password not match then wizard page should not move to the next step.

推荐答案

订阅OnNextButtonClick事件,做你的valiadation。如果验证失败设置取消WizardNavigationEventArgs的属性设置为true。

Subscribe to the OnNextButtonClick event and do your valiadation. If your validation fail set the cancel property of the WizardNavigationEventArgs to true.

protected void ClientWizard_NextButtonClick(object sender, WizardNavigationEventArgs e)
{
  if(password dont match ....)
  e.Cancel = true;
}

这篇关于如何拒绝移动到下一个WizardPage在.net中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆