Logre hacer la conexion, pero no se como se hace una consulta :(
Código ASP:
Ver originalusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
public partial class Entrar : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection conexion = new SqlConnection();
SqlCommand cmd = new SqlCommand();
conexion.ConnectionString = ConfigurationManager.ConnectionStrings["bd_prueba"].ConnectionString;
conexion.Open();
Response.Write(conexion.State);
}
}