如何在代码中提示用户 [英] How to Prompt User in Code

查看:61
本文介绍了如何在代码中提示用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个ASP.NET(VB.NET)应用程序.我遇到需要用户响应提示的情况,但是我需要代码停止执行,直到用户响应为止.如果我使用ModalPopupExtender,则代码将继续执行,并且直到代码完成才出现提示.我不能使用ConfirmButtonExtender,因为它与控件相关,并且我需要提示用户而无需他们进行交互.有任何想法吗?

I''m writing an ASP.NET (VB.NET) application. I have a situation where I need the user to respond to a prompt, but I need the code to stop executing until the user responds. If I use a ModalPopupExtender, the code continues executing and the prompt doesn''t appear until the code is complete. I can''t use a ConfirmButtonExtender because that is tied to a control and I need the user to be prompted without interaction on their part. Any ideas?

推荐答案

您可以使用Wizard控件,而无需中断代码,而是可以使用该控件根据先前的用户输入动态创建下一步.希望有帮助.
Instead of interrupting the code that way you can use the Wizard control where you can dynamically create the next step based on the previous user input. Hope that helps.


这篇关于如何在代码中提示用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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