Code:
<html>sdfsdfsadfsdfsdfsadfasdf </html>sdfasdfasdfasdfasdfvsdfsdfasdfasdfasdfasdfasdfasdf
<html>sdfsdfsadfsdfsdfsadfasdf </html>sdfasdfasdfasdfasdfvsdfsdfasdfasdfasdfasdfasdfasdf
if (!this.IsPostBack)
// Create a random code and store it in the Session object.
this.Session["CaptchaImageText"] = GenerateRandomCode();
else
{
// On a postback, check the user input.
if (this.CodeNumberTextBox.Text ==
this.Session["CaptchaImageText"].ToString())
Protected void Page_Init(object Sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
}
<% Response.Buffer = true; Response.Expires = 0; Response.ExpiresAbsolute
Leave a comment: