CreateUserWizard 和ContinueButton 控件
1)
A) CreateUserWizard 的可选控件之一也是ContinueButton 控件。 此控件引发 ContinueButtonClick 事件(如果 CommandName 设置为 Continue ),但是此事件的目的是什么? 那么,什么时候应该使用ContinueButton控件呢?
B) CreatingUser 事件是通过单击 CreateUserWizardstep 的 CreateUser 按钮引发的。 我假设点击CreateUser也会引发NextButtonClick事件?
谢谢
1)
A) One of the CreateUserWizard’s optional controls is also ContinueButton control. This control raises ContinueButtonClick event ( if CommandName is set to Continue ), but what is the purpose of this event? Thus, when should ContinueButton control be used?
B) CreatingUser event is raised by clicking on CreateUserWizardstep’s CreateUser button. I assume clicking on CreateUser also raises NextButtonClick event?
thanx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关于你的(A)问题。 以下是示例场景:假设在创建用户之前,您需要验证特定的用户 ID 或特定的电子邮件地址是否已在数据库中被占用或注册。
因此,在第一阶段,您可以要求新用户插入他/她想要的用户 ID 和电子邮件地址,然后您可以执行验证以检查数据库中是否存在。 如果存在,您可以相应地显示错误消息,如果不存在,您可以进入下一阶段/向导,以在数据库中创建用户之前获取更多详细信息。
因此,作为结论,“下一步”按钮用于在创建用户向导步骤中的步骤之间导航。
关于你的(B)问题。
根据 NextButtonClickEvent根据文档,此事件仅在调用“下一步”按钮时触发。
如果我没有记错的话,在向导步骤的最后一个阶段,将只有“创建用户”按钮,而不是“下一步”,因为该阶段是向导步骤中的最后一步。
问候,
哈迪
Regarding your (A) question. Here is the sample scenario: Let's say before you create a user, you need to validate whether a particular user id or a particular email address has been taken before or registered before in the database.
So in the first phase, you can ask the new user to insert his/her intended user id ,and email address, and then you can perform validation to check whether it's exist or not in the database. If it's exist, you can display an error message accordingly, and if it's not exist, you can move on to the next phase/wizard, to obtain more details before creating the user in the database.
So for the conclusion, the "Next" button is used to navigate between steps in the creating user wizard steps.
Regarding your (B) question.
According to the NextButtonClickEvent documentation, this event is only triggered when "next" button is called.
If i am not mistaken, at the last phase of the wizard steps, there will only be "Create User" button and not "Next", since that phase is the last step in the wizard steps.
Regards,
hadi