Ejemplo n.º 1
0
    protected void btnFilter_Click(object sender, EventArgs e)
    {     // Kullanıcın  TextBox ile brand(marka) veya pname(ürün) üzerinde arama yaparak ürünlerin filtrelenmesini sağlar
        if (TextBox5.Text != "")
        { //TextBox'ın içi boş ise filtre yapmadan bütün ürünleri listeler
            proxy = new ServiceReference1.ServiceClient();

            rptView.DataSource = proxy.GetProductFilter(TextBox5.Text.ToString());
            rptView.DataBind();
        }
        else
        {
            rptView.DataSource = proxy.GetProduct();
            rptView.DataBind();
        }
    }