简体   繁体   中英

Showing a “loading” Message box asp.net

我有一个asp应用程序,(在线表单),所有文本框都被禁用了,现在我要求用户输入保单号和一个发行办公室(这是一个下拉列表),并且正在数据库中读取它,所以当用户提供的数据,文本框已启用,现在,当用户在下拉列表上单击正确的发行机构(选定索引已更改)时,它将搜索数据库上的记录,现在我想提示用户选定索引更改,将显示一个消息框(“请稍候,我们正在搜索您的记录”),并在从数据库中完成搜索后关闭对话框。

you cannot do "Message boxes" like you are thinking. you would need to use a modal popup dialog which ASP.NET AJAX has:

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx

you can also use JQuery to achieve the same thing but it would be clientside based:

http://www.malsup.com/jquery/block/

How to use jquery blockUI

This will do what you are wanting to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM