Beispiel #1
0
    protected void FillFileAttachDetail()
    {
        dt = new DataTable();
        Int32 MsgId;

        MsgId = 0;
        DataTable dtMain      = new DataTable();
        Int32     MsgDetailId = Convert.ToInt32(Request.QueryString["MsgDetailId"]);

        dt = clsMessage.SelectMsgIdUsingMsgDetailIdExt(MsgDetailId);
        if (dt.Rows.Count > 0)
        {
            MsgId = Convert.ToInt32(dt.Rows[0]["MsgId"].ToString());
            dt    = new DataTable();
            dt    = clsMessage.SelectMsgforFileAttachExt(MsgId);
            if (dt.Rows.Count > 0)
            {
                GrdFileList.DataSource = dt;
                GrdFileList.DataBind();
                //   DataList1.DataSource = dt;
                // DataList1.DataBind();
                setGridisze();
            }
        }
    }