예제 #1
0
    protected void Page_Init(object sender, EventArgs e)
    {
        DataTable tblDatos = new DataTable();

        tblDatos = ((DataView)SqldsTAVS.Select(DataSourceSelectArguments.Empty)).Table;

        lblIdTAVS.Text       = Session["idTareaAVS"].ToString();
        txtNombreTAVS.Text   = tblDatos.Rows[0][1].ToString();
        txtDuracionTAVS.Text = tblDatos.Rows[0][2].ToString();
        txtFechaTAVS.Text    = tblDatos.Rows[0][3].ToString();
        lblIdOC.Text         = tblDatos.Rows[0][4].ToString();
        lblIdOP.Text         = tblDatos.Rows[0][5].ToString();
    }
예제 #2
0
    public DataTable dtDatosTAVSPDF()
    {
        DataTable tblDatos = new DataTable();

        tblDatos = ((DataView)SqldsTAVS.Select(DataSourceSelectArguments.Empty)).Table;

        lblIdTAVS.Text       = Session["idTareaAVS"].ToString();
        txtNombreTAVS.Text   = tblDatos.Rows[0][1].ToString();
        txtDuracionTAVS.Text = tblDatos.Rows[0][2].ToString();
        txtFechaTAVS.Text    = tblDatos.Rows[0][3].ToString();
        lblIdOC.Text         = tblDatos.Rows[0][4].ToString();
        lblIdOP.Text         = tblDatos.Rows[0][5].ToString();

        return(tblDatos);
    }