Connection String with App_Data
To Connect to database store in App_Data folder the connection string in web.config need to be modifed as -
<connectionStrings>
<add name="studentsdata" connectionString="Data Source=.\SQLExpress;AttachDBFilename=|DataDirectory|MyDataBase.mdf;Integrated Security=True;User Instance=True"/>
</connectionStrings>
0 comments