<connectionStrings>
<add name="MyConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Book.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
To access database from App_Data folder inside application, we need to write our connection string like....
<connectionStrings>
<add name="MyConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Book.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · Web DevelopmentA Guide to Mastering HTML5 CSS3 and JavaScriptDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
ram kumarPosted Jul 19, 2010, 3:09 AM EDT
dear friend i tried your rahulfriendnetwork project htat u gave to me . its nice but how can we add a user as my friend.there is no such functionality. pls add this if it is not there or tell me it u have n i am not able to find it. Thanks n waiting ur reply.