在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. |
|
这个程序比较实用!
我想这个程序应该是把javaScript的alert方法重新封装了一下吧!
怎么把控件添加到窗体里来?谢谢!!!
用以下的方法也可实现
Response.Write("<Script>alert('弹出的信息')</Script>")
省去添加控件那么麻烦。
dd
兄弟,你���个.net日历如何实现星期日,星期一等转换成星期日,星期一的呢?
还有.net中如果不用javascript就如何刷新呢?
我的QQ328952069,请指教一下,谢谢。
邮箱eison82@126.com
可以参考 http://www.bassilsoft.com
怎么用啊?大哥
看看代码怎么写啊。
msdn 上都有的
goood
ShowMessageAtStartup可以用,���MessageAtSubmit不知道怎么用?
控件添加了,用法不知道。。。