yidenglu.aspx.cs

(完整代码) 1KB

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 Default2 : System.Web.UI.Page
{  
    protected void Page_Load(object sender, EventArgs e)
    {
       

        if (!IsPostBack)
        {
            //Label1.Text = Request.QueryString["name"];
            Chaxun jj=new Chaxun();
            //Label1.Text = "小欣";
            Label1.Text = Session["yhmc"].ToString();
            string text = " select meili from userfor where username='"+Label1.Text+"'";
                //  select useraddress from userfor where username='小欣'
            Label2.Text = jj.chazhao(text);
            //Response.Write(Label2.Text);
            //Session.Add("yhmm",Label2.Text);
            Session["yhmm"] = Label2.Text;
           // Label1.Text = Session["yhmc"].ToString();
            
        }
    
         
    }
    protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e)
    {
        Label oo = (Label)e.Item.FindControl("label2");
        string jj = oo.Text;
        Response.Write(jj);
        Response.Redirect("shangpin.aspx?name=" + jj);
    }
    protected void DataList2_ItemCommand(object source, DataListCommandEventArgs e)
    {
        Label oo = (Label)e.Item.FindControl("label6");
        string jj = oo.Text;
        Response.Write(jj);
        Response.Redirect("shangpin.aspx?name=" + jj);
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。