Connection string question



Hello.

Developing a web site in VS2005, SP1, VB, .NET 2.0, ASP.NET 2.0, SQL Server
Express on XP Pro,
SP2.

In my web.config file, if my connection string looks like this:
"connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename="C:\Documents and
Settings\Administrator\My Documents\Visual Studio
2005\WebSites\CoyneWebSite\App_Data\CoyneWebDatabase.mdf";Integrated
Security=True;Connect Timeout=30;User Instance=True"
providerName="System.Data.SqlClient"/>"

Shouldn't i be able to change it to "~/App_Data/CoyneWebDatabase.mdf"?

So that when i upload my website to my host it looks for "App_Data" off of
the root of the website.

Any help would be gratefully appreciated.

Thanks,
Tony


.



Relevant Pages

  • Re: FrontPage
    ... >> In your remote website properties, ... >> FP will only upload the pages that were modified by using File / ... >>> talk to the web hosting company and they tell me that there is ... >>>> Kevin Spencer ...
    (microsoft.public.frontpage.client)
  • Re: Trouble with uploading links to host
    ... your pdf files to your website, and write the link to where you upload them. ... Most of us find that having a separate folder for downloads on our website ... Then upload the pdf files you want available for download to that folder. ...
    (microsoft.public.publisher.webdesign)
  • Re: hyperlink to pdf document
    ... Upload the pdf to your web server. ... > the hyperlink. ... >> website was created using Publisher 2003. ...
    (microsoft.public.publisher.webdesign)
  • Cannot post to website: 550 Permission Denied
    ... Dear Sirs, Thank you for your reply.However, I am still ... not able to upload to my website and get the following ... Yours faithfully Alexander ...
    (microsoft.public.frontpage.extensions.windowsnt)
  • Re: large file transfer - what do you use?
    ... > to website and telling people to go to this address & ... > directory name for each client. ... > I upload files to printers using FTP also. ... Can't you use FTP with ISDN? ...
    (comp.publish.prepress)