MessageBox Control in ASP.NET

在ASP.NET里实现MessageBox

http://www.microsoft.com/india/msdn/articles/119.aspx
?
msgbox_img.gif

ShowMessageAtStartup
 
This control is used to show message at startup of the page. For example, if you want to inform the user with some information using message box after the post back. Then you can use this control. This control has following two properties,
 
MessageText:This property is used to set the Message which is showed in the message box.
Enabled:This property is used for enabling or disabling this control depending upon the
requirement.
 
MessageAtSubmit
 
This control is used to show alert message or confirm message box when the page is submitted. For example, when the user is pressing a button to delete a record. During that time, if you want to ask the user for confirmation. Then you can use this control. This control has following properties,
 
MessageText:This property is used to set the Message which is showed in the message box.
Enabled:This property is used for enabling or disabling this control depending upon the
requirement.
IsConfirmMessage:This property is used to mention whether it is confirmation message box or alert message box.
ConfirmMessagePassClientScript:This property is used to mention the client side script which has to executed if the confirmation message return true. i.e. when users presses ok button. This property will be used only when isConfirmmessage property is set to true
ConfirmMessageFailClientScript:This property is used to mention the client side script which
has to executed if the confirmation message return false. i.e. when users presses
cancel button. This property will be used only when isConfirmmessage property
is set to true.

转载于:https://www.cnblogs.com/huobazi/archive/2004/03/04/2135.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值