Пример #1
0
    protected void imgbtnAssignedToSupp_Click(object s, EventArgs e)
    {
        GridViewRow item = (GridViewRow)((ImageButton)s).Parent.Parent;

        lblFineName.Text      = ((ImageButton)s).CommandArgument.Trim();
        gvSupplier.DataSource = BLL_PURC_Common.Get_AssignedAttach(Request.QueryString["REQUISITION_CODE"].ToString(), ((ImageButton)s).CommandArgument.Trim());
        gvSupplier.DataBind();

        ScriptManager.RegisterStartupScript(this, typeof(Page), "SuppAttachments", "showModal('dvAssignAttachment')", true);
    }
Пример #2
0
    protected void imgbtnAssignedToSupp_Click(object s, EventArgs e)
    {
        dvAssigneToSupp.Visible = true;
        GridViewRow item = (GridViewRow)((ImageButton)s).Parent.Parent;

        //var item =(rgdFileInfo.Rows[rowIndex].Cells[3].Text);
        //
        lblReqsn.Text         = ((Label)item.FindControl("lblReq")).Text;
        lblFineName.Text      = ((LinkButton)item.FindControl("lbtnPreview")).Text;
        lbldate.Text          = ((Label)item.FindControl("lblDate")).Text;
        gvSupplier.DataSource = BLL_PURC_Common.Get_AssignedAttach(((Label)item.FindControl("lblReq")).Text, ((ImageButton)s).CommandArgument.Trim());
        gvSupplier.DataBind();
    }