How can I specify file location in an asp web page code?
Posted on 2009-05-14
Hi, I'm using vs2008 and .net 3.5. I opened up an existing asp.net page done by other programmer. I have a site.master file where it specify the CodeBehine-"Site.master.cs". Now, I download these files from a FTP site and save them to my hard drive in my own and newly created folder.
How can I specifiy to find the cs file in the same directory as the site.Master file that I currently have opened?
Also, in antoher About.aspx file, it referrs to the Site.master file but the path doesn't work. What's the best way to define the path? The about.aspx locates at c:\projects\Views\Home. The Site.Master file locates at c:\proejcts\Views\Shared. I tried specifying as "../Shared/Site.Master" but that doesn't work.