Example #1
0
    protected void lblCharter_Click(object sender, EventArgs e)
    {
        divAdd.Visible         = true;
        divGridRemarks.Visible = true;
        var         closeLink   = (Control)sender;
        GridViewRow row         = (GridViewRow)closeLink.NamingContainer;
        LinkButton  lblValue    = (LinkButton)row.FindControl("lblCharter");
        Label       lblVesselID = (Label)row.FindControl("lblVesselID");

        ViewState["Charter_Id"] = lblValue.Text;
        ViewState["Vessel_Id"]  = lblVesselID.Text;
        Label txtAmount = (Label)row.FindControl("lblAmount");

        ViewState["Amount"] = txtAmount.Text;
        // row.BackColor = ColorTranslator.FromHtml("#A1DCF2");


        //gridbind

        DataTable dt = oCP.Get_Remittance_Details(lblValue.Text).Tables[0];

        gridRemarks.DataSource = dt;
        gridRemarks.DataBind();
    }