protected void SearchBtn_Click(object sender, EventArgs e)
    {
        if (PrdRb.Checked)
        {
            int cityID, merID;
            DAL.OveralManaDAL.PrdManaDAL pd = new DAL.OveralManaDAL.PrdManaDAL();
            if (MerDpl.SelectedValue.Equals("AllMer"))
            {
                merID = -1;
            }
            else
            {
                merID = Convert.ToInt32(MerDpl.SelectedValue);
            }
            if (CityDpl.SelectedValue.Equals("AllCity"))
            {
                cityID = -1;
            }
            else
            {
                cityID = Convert.ToInt32(CityDpl.SelectedValue);
            }
            PrdGrd.DataSource = pd.GetAllPrdList(txtSearch.Value, merID, cityID);
            PrdGrd.DataBind();
            dvPrd.Style.Add("display", "block");
            dvMer.Style.Add("display", "none");
        }
        if (MerRb.Checked)
        {
            BLL.OveralMana.MerchantMana.MerchantManaBLL mc = new BLL.OveralMana.MerchantMana.MerchantManaBLL();
            int cityID, stateID;
            if (CityDpl.SelectedValue.Equals("AllCity"))
            {
                cityID = -1;
            }
            else
            {
                cityID = Convert.ToInt32(CityDpl.SelectedValue);
            }
            if (StateDpl.SelectedValue.Equals("-1"))
            {
                stateID = -1;
            }
            else
            {
                stateID = Convert.ToInt32(StateDpl.SelectedValue);
            }
            MerListGrd.DataSource = mc.GetAllMerList(txtSearch.Value, stateID, cityID);
            MerListGrd.DataBind();

            dvMer.Style.Add("display", "block");
            dvPrd.Style.Add("display", "none");
        }
    }
    public void BindData()
    {
        BLL.OveralMana.MerchantMana.MerchantManaBLL mc = new BLL.OveralMana.MerchantMana.MerchantManaBLL();
        int cityID, stateID;

        if (CityDpl.SelectedValue.Equals("AllCity"))
        {
            cityID = -1;
        }
        else
        {
            cityID = Convert.ToInt32(CityDpl.SelectedValue);
        }
        if (StateDpl.SelectedValue.Equals("-1"))
        {
            stateID = -1;
        }
        else
        {
            stateID = Convert.ToInt32(StateDpl.SelectedValue);
        }
        MerListGrd.DataSource = mc.GetAllMerList(SrchTextbox.Text, stateID, cityID);
        MerListGrd.DataBind();
    }