Reputation: 8734
I have a website which was created by someone; now I am trying to open it.
My doubt is will that project contain a solution? Within Visual Studio, I am trying to open through the open website option, but I didn't find a solution.
Is that right way? How best can I open a website with Visual Studio?
Upvotes: 2
Views: 6807
Reputation: 57
If you are making a web/windows project you will not get solution file. It will be available only in websites. And also if you publish that website you will not get solution file. So be sure that Its a website and not published.
Upvotes: 0
Reputation: 9139
There exist two different types of projects: web application and web sites. If the directory with the project does not contain a project file (*.csproj or *.vbproj) it is probably a web site. You can check this when you open an .aspx file. In the @Page tag you will see the attribute codefile whereas web application use the attribute codebehind. Web Sites you open with open web site. Any file in the directory belongs to the project unless it has the file extension *.excluded. Hope this helps.
Upvotes: 1
Reputation: 16826
You cannot open a website as a solution unless you have explicit access to the source code. When a ASP.NET site is published, the actual solution is no longer available to the public and all you get is the HTML representation (client-side) rather than the source (server-side).
Upvotes: 0
Reputation: 10366
Upvotes: 1
Reputation: 32596
That will work if all you want to do edit the site's files directly. If you're looking for the ASP.Net or MVC solution that was used to create the site though, then this won't work.
Upvotes: 0