01 2016 档案

摘要:Response.Write和Response.Redirect一起用的时候就会这样,write脚本和redirect脚本不能同时使用,这样不会执行脚本,最好使用ClientScript改进方法:方法一:Page.ClientScript.RegisterClientScriptBlock(this... 阅读全文
posted @ 2016-01-12 10:34 馨梦缘 阅读(1956) 评论(2) 推荐(0)
摘要:1.新建一个页面,ImageCode.aspx2.在Page_Load中添加如下代码string tmp = RndNum(4); HttpCookie a = new HttpCookie("ImageV ", tmp); Respo... 阅读全文
posted @ 2016-01-03 23:43 馨梦缘 阅读(10735) 评论(2) 推荐(0)