Wish.aspx.cs
(完整代码) 1KBusing 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;
using System.Text;
public partial class Wish : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
int wishWallId = Convert.ToInt32(Request.QueryString["WishWallId"]);
StringBuilder result = new StringBuilder();
WebHL.BLL.TBWish wish = new WebHL.BLL.TBWish();
DataTable dt = wish.GetList(1000, 1, "BelongWishWallId=" + wishWallId.ToString()).Tables[0];
if (dt.Rows.Count == 0)
return;
for (int i = 0; i < dt.Rows.Count; i++)
{
result.Append(dt.Rows[i]["Call"]);
result.Append("$%");
result.Append(dt.Rows[i]["Content"]);
result.Append("$|");
}
result.Remove(result.Length - 2, 2);
this.TBWishData.Value = result.ToString();
int userId = Convert.ToInt32(Request.QueryString["userId"]);
WebHL.BLL.TBUserInformation user = new WebHL.BLL.TBUserInformation();
WebHL.Model.TBUserInformation model = new WebHL.Model.TBUserInformation();
model = user.GetModel(userId);
this.TBUserCall.Value = model.Call;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
