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

服务器控件执行客户端代码

2011年11月08日 ⁄ 综合 ⁄ 共 134字 ⁄ 字号 评论关闭
1、关闭
  private void Page_Load(object sender, System.EventArgs e)
{
   Button1.Attributes.Add(
"onclick","JavaScript:window.close()");
}

未完待续

抱歉!评论已关闭.