Note that there are some explanatory texts on larger screens.

plurals
  1. POConnection string data source path to access files from other projects
    primarykey
    data
    text
    <p>i have 2 projects , 1 is a web application and another is WPF , in my web application i have a upload page to allow users to upload their files i used Server.MapPath(@"~/something/") for the directory but how do i retrieve that file in my WPF application , i can retrieve by typing the full path C:/programfiles/projects ... etc , but i am retrieving the directory from the database and in the database it reads like that ~/something/filename.jpg .</p> <p>I only save ~/something/filename.jpg in the database , How do i retrieve the full path without manually typing the full path? </p> <p>the Full path is in another project like this C:/programfiles/projects/visualstudio/projectname/something/filename.jpg.</p> <p>How to i access the file with only ~/something/filename.jpg in another project? there is an error saying path does not exists unless i type the full path in but i don't want that .</p> <p>Some say we have to add a domain directory in the connectionstring of my App.Config then later i need to use it and combined it with the database url to get my full path . But i got no idea how to do that . </p> <p>connectionstring : </p> <pre><code> &lt;add name="istellarEntities2" connectionString="metadata=res://*/ModelSQL.iStellar.csdl|res://*/ModelSQL.iStellar.ssdl|res://*/ModelSQL.iStellar.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=IMAC-PC10\SQLEXPRESS;initial catalog=istellar;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt; </code></pre> <p>How i retrieve from my database ( the URL , using entity framework daoWordPuzzle is a class file which consists of CRUD codes ) :</p> <pre><code>@daoWordPuzzle.GetfileURL() // however this displays only ~/something/something.jpg </code></pre> <p>I need to have the full path . How do i do that?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload