I want to make a connection to MSSQL 2008 database, using Visual Studio 2010, ASP.NET C# web site
I wrote this connection string in web.config file:
<connectionStrings> <add name="konekcija" connectionString="data source=.\SQLEXPRESS;Initial Catalog=Movies;Integrated Security=True;" providerName="System.Data.SqlClient" /> </connectionStrings>
Now I need to call that connection on a code behind the page... something like:
SqlConnection conn = new SqlConnection.... can anyone help?