Syntax Error at Database Connection String asp.net & c#
<p>I have written code to connect to insert asp.net form data into an SQL server, created in Microsoft Visual Studio 2015, using c#. The issue I am having now is that I am unable to test if form works due to a Synax error. There are spaces between the text file, I am not sure if that might be the reason why there is an error? Or misplaced connection file? I copied the pathing directly from Microsoft Access. Any advice would be greatly appreciated.</p>

<p>Error:</p>

<blockquote>
  <p>Compiler Error Message: CS1003: Syntax error, ',' expected</p>
  
  <p>Source Error:</p>
  
  <blockquote>
    <p>Line 11: public partial class _Default : System.Web.UI.Page</p>
    
    <p>Line 12: {</p>
    
    <p>Line 13:     SqlConnection con = new SqlConnection(@"Data
    Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C:
    \Users\P\Docs\Visual Studio
    2015\WebSites\WebSite2\App_Data\Database.mdf";Integrated
    Security=True"); </p>
    
    <p>Line 14:     protected void Page_Load(object sender,
    EventArgs e) </p>
    
    <p>Line 15:     {</p>
    
    <p>Source File: C:\Users\P\Docs\Visual Studio
    2015\WebSites\WebSite2\Default.aspx.cs    Line: 13</p>
  </blockquote>
</blockquote>

<p>This is the form code in c#</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;


public partial class _Default : System.Web.UI.Page
{
    SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename="C: \Users\P\Docs\Visual Studio 2015\WebSites\WebSite2\App_Data\Database.mdf";Integrated Security=True");
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Unnamed1_Click(object sender, EventArgs e)
    {
        con.Open();
        SqlCommand cmd = con.CreateCommand();
        cmd.CommandType = System.Data.CommandType.Text;
        cmd.CommandText = "insert into Table values('" + pName.Text + "','" + pEmail.Text + "')";
        cmd.ExecuteNonQuery();

        con.Close();
    }
}
</code></pre>