posted on March 4, 2004

MessageBox Control in ASP.NET

Tagged Under : Asp.net

在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.

  1. koffer March 4th, 2004 at 07:16 pm
    koffer

    这个程序比较实用!

    我想这个程序应该是把javaScript的alert方法重新封装了一下吧!

  2. pentiumintel April 14th, 2004 at 05:54 pm
    pentiumintel

    怎么把控件添加到窗体里来?谢谢!!!

  3. Bruce_H21 November 25th, 2004 at 10:25 pm
    Bruce_H21

    用以下的方法也可实现

    Response.Write("<Script>alert('弹出的信息')</Script>")

    省去添加控件那么麻烦。

  4. dd January 7th, 2005 at 12:58 am
    dd

    dd

  5. 辛巴 August 11th, 2005 at 06:51 am
    辛巴

    兄弟,你���个.net日历如何实现星期日,星期一等转换成星期日,星期一的呢?

    还有.net中如果不用javascript就如何刷新呢?

    我的QQ328952069,请指教一下,谢谢。

    邮箱eison82@126.com

  6. second August 25th, 2005 at 04:59 pm
    second

    可以参考 http://www.bassilsoft.com

  7. andyhuang [未注���用户] November 30th, 2005 at 07:47 pm
    andyhuang [未注���用户]

    怎么用啊?大哥

    看看代码怎么写啊。

  8. 杨发达 December 7th, 2005 at 08:13 am
    杨发达

    msdn 上都有的

  9. BrianXue December 30th, 2005 at 07:25 pm
    BrianXue

    goood

  10. lxl March 19th, 2006 at 08:45 pm
    lxl

    ShowMessageAtStartup可以用,���MessageAtSubmit不知道怎么用?

  11. kakusang November 28th, 2006 at 10:07 pm
    kakusang

    控件添加了,用法不知道。。。

留下您的评论 »

captcha
请输入验证码