예제 #1
0
    protected void Button2_Click(object sender, System.EventArgs e)
    {
        string url = "ShowLinkView.aspx?type=" + Session["jglx"].ToString() + "&qs=" + Session["jgqs"].ToString() + "&bh=";

        this.Repeater1.DataSource = Jiegou.Link_Map(Convert.ToInt32(Session["jgqs"].ToString()), isAnzhi(Session["jglx"].ToString()), Session["jgbh"].ToString(), url);
        this.Repeater1.DataBind();
    }
예제 #2
0
    protected void Button1_Click(object sender, System.EventArgs e)
    {
        string url = "ShowLinkView.aspx?type=" + Session["jglx"].ToString() + "&qs=" + Session["jgqs"].ToString() + "&bh=";

        //Jiegou.Link_Map(1, false, "4444444444", "showLinkView.aspx?");
        this.Repeater1.DataSource = Jiegou.Link_Map(Convert.ToInt32(DropDownList1.SelectedValue), isAnzhi(Session["jglx"].ToString()), Session["jgbh"].ToString(), url);
        this.Repeater1.DataBind();
    }
예제 #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //检查店铺权限
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        // Permissions.CheckMemberPermission();//验证是否已登录


        //判断是否正确调用(bh,type,qs值是否已经传到)
        if (Request.QueryString["bh"] == null || Request.QueryString["type"] == null || Request.QueryString["qs"] == null)
        {
            Response.Write("调用错误!");
            Response.End();
        }

        if (!IsPostBack)
        {
            CommonDataBLL.BindQishuList(DropDownList1, false);

            this.DropDownList1.SelectedValue = Request.QueryString["qs"];
            bool flag = registermemberBLL.isNet(Session["jglx"].ToString(), this.getBH(SfType.getType()), Convert.ToString(Session["jgbh"]));

            // if (jiegou.isValid(Request.QueryString["bh"].ToString(), sfType.getMemberBH(), isAnzhi(Request.QueryString["type"]), Convert.ToInt32(Request.QueryString["qs"])))
            if (flag)
            {
                string    url = "ShowLinkView.aspx?type=" + Request.QueryString["type"] + "&qs=" + Request.QueryString["qs"] + "&bh=";
                DataTable dt  = Jiegou.Link_Map(Convert.ToInt32(Convert.ToInt32(Request.QueryString["qs"])), isAnzhi(Request.QueryString["type"]), Request.QueryString["bh"], url);
                ViewState["bh"]           = Request.QueryString["bh"];
                this.Repeater1.DataSource = new DataView(dt, "", "id desc", DataViewRowState.CurrentRows);
                this.Repeater1.DataBind();
            }
            else
            {
                Response.Write(GetTran("000892", "您不能查看该网络"));
                Response.End();
            }
        }
        Translations();
    }