现在的位置: 首页 > 综合 > 正文

MessageBox Control in ASP.NET

2011年02月04日 ⁄ 综合 ⁄ 共 1426字 ⁄ 字号 评论关闭
在ASP.NET里实现MessageBox

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

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.
【上篇】
【下篇】

抱歉!评论已关闭.