Connection String to access DataBase from App_Data Folder inside application

<connectionStrings>

    <add name="MyConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Book.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

  </connectionStrings>

Next Recommended Reading Insert data from Gridview to database