protected void lblzone_Click(object sender, EventArgs e)
    {
        LinkButton lnk    = (LinkButton)sender;
        int        zoneid = Convert.ToInt32(((Label)lnk.Parent.FindControl("lblzoneid")).Text);

        ViewState["zoneid"] = zoneid;

        divall.Visible            = false;
        pnlgrdDeatils.Visible     = true;
        divbutton.Visible         = true;
        Pnlgrdview.Visible        = false;
        MarketReview.ReportSource = null;
        DataSet ds = new DataSet();

        ds = Market_Review.Get_Mark_ReviewDetails("all", zoneid.ToString());
        if (ds.Tables[0].Rows.Count > 0)
        {
            lblMSDZ.Text          = ds.Tables[0].Rows[0][3].ToString() + ",  ";
            lblMSZ.Text           = ds.Tables[0].Rows[0][5].ToString() + ",  ";
            lblMZ.Text            = ds.Tables[0].Rows[0][6].ToString();
            grdDeatils.DataSource = ds.Tables[0];
            grdDeatils.DataBind();
        }
        else
        {
        }
    }
    public void fillDataDocNo(int isNew)
    {
        int            zone = Convert.ToInt32(ViewState["zoneid"]);
        ReportDocument rd   = new ReportDocument();

        if (isNew == 1)
        {
            string  value = getString();
            DataSet ds    = new DataSet();

            if (value == "")
            {
                ds = Market_Review.Get_Mark_ReviewDetails("all", zone.ToString());
                ViewState["DocNoRep"] = ds.Tables[0];
            }
            else
            {
                ds = Market_Review.Get_Mark_ReviewDetails("", value);
                ViewState["DocNoRep"] = ds.Tables[0];
            }
        }
        if (ViewState["DocNoRep"] != null)
        {
            try
            {
                rd.Load(Server.MapPath("Report/MarketReviewReport.rpt"));
                rd.Database.Tables[0].SetDataSource((DataTable)ViewState["DocNoRep"]);
                MarketReview.ReportSource = rd;
            }
            catch
            {
            }
        }
    }
    protected void lblView_Click(object sender, EventArgs e)
    {
        LinkButton lnk = (LinkButton)sender;
        int        mid = Convert.ToInt32(((Label)lnk.FindControl("lblmarkid")).Text);

        GridView1.DataSource = Market_Review.Get_Mark_ReviewDetails("", mid.ToString());
        GridView1.DataBind();
        mdpextender.Show();
    }