摘要: 将response.write(<script>alert('');</script>);换成ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "TestAlert", "alert('测试 alert !');", true);就OK 阅读全文
posted @ 2009-12-05 16:12 Xingsoft 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 在web.confing中 添加 <globalization requestEncoding="utf-8" responseEncoding="utf-8"/> 阅读全文
posted @ 2009-12-05 16:08 Xingsoft 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 设置winform窗体上默认的按钮为Enter或Esc键,只需设置窗体的acceptbutton和cancelbutton两个属性。如果是asp.net页面只需设置form表单的defaultbutton属性。在C# windows Form程序中添加托盘可以使用NotifyIcon控件,使程序不显示在工具栏上可以设置ShowInTaskbar 属性。点击关闭按钮最小化窗体:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->protecte 阅读全文
posted @ 2009-12-05 16:00 Xingsoft 阅读(384) 评论(0) 推荐(0) 编辑