Пример #1
0
    protected void Page_Init(object sender, EventArgs e)
    {
        DataTable tblDatos = new DataTable();

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

        lblIdTM.Text        = Session["idTareaMtto"].ToString();
        txtNombreTM.Text    = tblDatos.Rows[0][1].ToString();
        txtDuracionTM.Text  = tblDatos.Rows[0][2].ToString();
        txtDescripcion.Text = tblDatos.Rows[0][3].ToString();
        lblIdE.Text         = tblDatos.Rows[0][4].ToString();
    }
Пример #2
0
    public DataTable dtDatosTMPDF()
    {
        DataTable tblDatos = new DataTable();

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

        lblIdTM.Text        = Session["idTareaMtto"].ToString();
        txtNombreTM.Text    = tblDatos.Rows[0][1].ToString();
        txtDuracionTM.Text  = tblDatos.Rows[0][2].ToString();
        txtDescripcion.Text = tblDatos.Rows[0][3].ToString();
        lblIdE.Text         = tblDatos.Rows[0][4].ToString();

        return(tblDatos);
    }