EasyShop/register.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyModels;
using ExeSql;
using System.Data;
using System.Data.SqlClient;
using BLL;
using COMM;
using conn;
namespace EasyShop
{
public partial class register : System.Web.UI.Page, ICallbackEventHandler
{
public string jsString = "";
public int ck = -1;
protected void Page_Load(object sender, EventArgs e)
{
string reference = Page.ClientScript.GetCallbackEventReference(this, "args", "Success", "", "Error", false);
string callbackscript = "function CallServer(args,context){\n" +
reference + ";\n}";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "callback", callbackscript, true);
}
string ICallbackEventHandler.GetCallbackResult()
{
return ViewState["result"].ToString();
}
void ICallbackEventHandler.RaiseCallbackEvent(string eventArgument)
{
TB_MC_User tmc = new TB_MC_User();
//tmc.UserName=eventArgument.ToString();
tmc.LoginName = eventArgument.ToString();
int k = tmc.GetDataByLoginName();
if(k>0)
{
ViewState["result"] = "帐号已使用!";
}
else
{
ViewState["result"] = "可以使用";
}
}
//public string GetCallbackResult()
//{
// return ViewState["result"].ToString();
//}
//public void RaiseCallbackEvent(string eventArgument)
//{
// string UserName = txt_UserName.Text;
// if (eventArgument.Equals(UserName))
// {
// ViewState["result"] = "帐号已使用!";
// }
// else
后面还有 130 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。