Web/User_index.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using System.Data.SqlClient;using System.Data;
namespace Web
{
public partial class User_index : Web.UI.BasePage
{
public string ImgUrl;
protected void Page_Load(object sender, EventArgs e)
{
Bind();
}
public void Bind()
{
BLL.User bll = new BLL.User();
Model.User model = new Model.User();
if (Session["username"] != null)
{
model = bll.GetModel("[username]='" + Session["username"]+"'");
BLL.Feedback bll1 = new BLL.Feedback();
Label1.Text = bll1.GetCount("Id>0 and IsLock=1 and Username='" +Session["username"].ToString() + "'").ToString();
if (model != null)
{
ImgUrl = model.U_jtel;
sname.Text = model.Username;
}
BLL.Products bllp = new BLL.Products();
Label2.Text = bllp.GetCount("Id > 0 and IsSlide=1 and uname='" + Session["username"].ToString() + "'").ToString();
}
else
{
//Page.RegisterStartupScript("fe421", "<script>alert('你还没有登录,请登录后再来吧!');location.href='login.aspx';</script>");
Response.Redirect("login.aspx");
}
BLL.Products blla = new BLL.Products();
Repeater1.DataSource = blla.GetList(6, "IsRed=1", "Click asc,Id desc");
Repeater1.DataBind();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
