예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Login"] == null)
        {
            Response.Redirect("LogIn.aspx");
        }
        string    TypeProd  = (Request["Type"]);
        string    TypeBrand = (Request["Brand"]);
        DataTable Dp        = new DataTable();

        Dp = GlobalFunc.GetTypeProdes(TypeProd);
        RptProd.DataSource = Dp;
        RptProd.DataBind();
        if (TypeProd == null)
        {
            Dp = GlobalFunc.GetProdFromBrand(TypeBrand);
            RptProd.DataSource = Dp;
            RptProd.DataBind();
        }
    }