Hola de nuevo...
He intentado hacerlo, he aquí lo que tengo, pero me manda error.
porfa ayuda.
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text.RegularExpressions;
using System.Data.SqlClient;
namespace ASPNETFuturesEnabledWebApplication1
{
public partial class _Default : System.Web.UI.Page
{
DataSet dataSetOrg = new DataSet();
//acá me manda un error... Palabra clave no admitida: 'datasource'.
SqlConnection cnx = new SqlConnection
ConfigurationManager.ConnectionStrings["EJEMPLO"].ConnectionString);
protected void Page_Load(object sender, EventArgs e)
{
string Consulta = "SELECT * FROM CONTACTOS";
SqlCommand Orden = new SqlCommand(Consulta, cnx);
Lector = Orden.ExecuteReader();
miData = new DataTable();
miData.Load(Lector);
GV1.DataSource = miData;
}
}
}
Salu2 y gracias.