web页面上通过后台弹出消息框的几种方式

  1. Response.Write("javascript:alert('hahahah!')");
  2. ServerControl.Attributes.Add("onclike","   return   confirm('are   you   sure?')");
  3. Page.RegisterStartupScript("","<script>   alert('添加数据成功!')</script>");
posted @ 2012-08-07 21:16  自然去留  阅读(707)  评论(0编辑  收藏  举报