📄 getvalidatecode.aspx.cs
字号:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class getValidateCode : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache );
string strId = Request.QueryString["id"];
string code = null;
string xmlStr = null;
string key = null;
code = Session["valStr"].ToString();
key = Request.QueryString["key"].Trim();
Response.ContentType = "text/xml";
if (key.Equals(code))
xmlStr = "<ajax-response><response type='object' id='" + strId + "_updater'><matches><entry>true</entry></matches></response></ajax-response>";
else
xmlStr = "<ajax-response><response type='object' id='" + strId + "_updater'><matches><entry>false</entry></matches></response></ajax-response>";
Response.Write(xmlStr);
// Response.Write("df");
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
/// <summary>
///
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -