using 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.OleDb; using System.Data.SqlClient; namespace dbc { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { string connectionString="Data Source=USER-PC;Initial Catalog=master;Integrated Security=True"; SqlConnection conn=new SqlConnection(connectionString); conn.Open(); Response.Write("hi"); conn.Close(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)