AJAX regist the Javascript for the callback method, and when finished the postback, call the registed method in the client side if the registed event ocurred. about the window, you can both use the window.open() or Alert() to do it.
[DllImport("user.dll", EntryPoint="MessageBox")] public static extern int MsgBox(int hWnd, String text, String caption, uint type); 引用user.dll就哟MsgBox可用了。
Response.Write 是一种
还有就是 RegisterStartupScript 等,即注册脚本
在 ClientScriptManager 类里
楼主兄弟,用这个吧 绝对行Response.Write("<script>alert('跳出对话框')</script>");
就这个吧.其他的我就不知道了。
[DllImport("user.dll", EntryPoint="MessageBox")]
public static extern int MsgBox(int hWnd, String text, String caption, uint type);
引用user.dll就哟MsgBox可用了。
OnClick="Button1_Click"
OnClientClick="return confirm('OK?')"
Text="Test Client Click" />