CheckCode.aspx

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class CheckCode : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string code = null; Img chkImg = new Img(); chkImg.getimg(6, out code); Response.Cookies.Add(new HttpCookie("CheckCode", code)); } }

你可能感兴趣的:(.NET)