Trying To Create A Proper Directory Structure For A New Website?

Jul 9, 2010

Can you point me to a url for the proper directory structure to create for a new website?I can create a website project and add class library projects to the solution to create a fully functional website.My grey area is that I need to zip up the web site solution and hand it over to the client.I'd like to make sure that I hand over a solution with the most proper directory structure.I'll run you through a scenario:

1. Select File > New > Web Site > ASP.NET Web Site from the main menu
2. Save with a path of C:ProjectsTestWebSite
3. Right-click the solution in VS and select Add > New Project > Class Library
4. The new class library is added with an automatic path of C:ProjectsTestWebSite (2)MyClassLib1

It seems like there should be a way to create a better structure for this but I'm just not following the correct process. Can you point me to a url with instructions for managing a proper structure for this?

View 1 Replies


Similar Messages:

C# - How To Create A Directory Structure From Database For Treeview

Feb 18, 2011

I am saving relative path of files in my DB as string. I want to create a treeview from this input. There can be multiple folders for a file path.

View 1 Replies

C# - Proper Procedure To Create A N-tier Website?

Dec 8, 2010

What is the correct procedure to create an n-tier Website in ASP.NET? Can this be done without setting up a server farm, and how would you be able to test it?

View 3 Replies

Why Necessary To Create Virtual Directory In IIS When Website Content Is Placed In IIS Root Directory

Feb 13, 2010

As virutal directory points to physical path of the application, so if the IIS root directory is C:inetpubwwwroot and the application is stored at D:websites, than we need to create a virtual directory but if the application content is placed at C:inetpubwwwroot, then why still need to create virtual directory.

View 3 Replies

Sub-Website In IIS - Create A Virtual Directory Under The Website Folder?

Jan 20, 2011

I have a asp.net website in the IIS which is available on internet as www.xyz.com now I have been asked to prepare another website which will be accessed via www.xyz.com/abc.

For this, do I need to create a virtual directory under the website folder XYZ in IIS? or is there any other way to achieve this.

View 2 Replies

How To Create A Virtual Directory Under A Website

Feb 8, 2011

I was running it directly from Visual studio which resulted in this error :) I can clearly see the images when I run it directly from IIS!

I've created a website under IIS and have successfuly pointed it to my project. The path to my project under IIS is:

[URL]

I, then created a virtual directory under website cartoon named cartoon_images but it creates it under localhost:36011/cartoon_images/ instead of localhost:36011/cartoon/cartoon_images/

As you can see, virtual directory is under the website "cartoon" but I can't access it as cartoon/cartoon_images/

I'll need to give links to this virtual folder but I can't do it in this case if I'm not mistaken.

View 1 Replies

Embedding Whole Directory Structure?

Dec 13, 2010

I have a large directory structure with JavaScript, images, etc. that depend on each other. I would like to encapsulate it all into a DLL so I only have to reference one thing and not have multiple copies of all these files across projects.

Because the files depend on each other, I'm thinking I can create an IHttpModule that registers a route to accept URLs such as /MyEmbeddedDir/subdir/file.js. Anything in MyEmbeddedDir would then be handled by a custom IHttpHandler that does the correct mapping. Each web application would then need to reference the DLL and add the module and handler to web.config. Does this seem reasonable?Also, is there an easier way to embed/reference the files than to set the build action to embedded resource and add [assembly: WebResource(...)] to each file (there are dozens!)?Edit: If I'm not using WebResource.axd then I shouldn't need to add [assembly: WebResource(...)]

View 2 Replies

Iis - How To Create Virtual Directory Build Website Using Nant

Aug 3, 2010

I am trying to Create Virtual Directory and develop the asp.net projects ..in IIS using NAnt script .

View 1 Replies

Architecture :: User Directory Structure?

Feb 7, 2010

I'm building a site that can possibly have millions of users (yes ambitious!). Each user can upload an image or two for his/her profile. How would you architect the directories to support this type of thing? I was thinking of having a users subfolder off the root dir where each user will have their own sub-dir that corresponds to their userId created at registration time. I could then upload their profile pics to their corresponding sub-directory under the users dir. Seems straightforward but am I missing anything? Can I have a million sub-dirs under the user dir? NTFS supports it so my guess is YES.

View 2 Replies

Web Forms :: Specific Directory Structure?

Jun 14, 2010

I am working on an ASP.NET application which has one data entry form. this form contains one field which takes Path for existing webforms.Suppose i have a form name "XYZ.ASPX" inside my working directory eg. "WEBPAGESXYZ.ASPX"Now my requirement is "Can i have a browsing control which will restrict me to browse pages and user controls in my wrking directory only and not the whole computer"

View 3 Replies

Performance - Directory Structure For Storing Images?

Nov 15, 2010

I'm working on an application which will store around 50.000 images within it's first year and another 75.000 in it's second. Images can come from Galleries, news images, article images and profile images. So I want to give each image a GUID and store the GUID in the database.As for the directory structure i was thinking of something like this:

~/Upload/Images/F2/50/F2504E0-4F89-11D3-9A0C-0305E82C3301.jpg

So I'm using the first 4 characters of the GUID as my directory structure to spread images a bit more evenly between directories. Now I have some questions about this approach:Is it considered good practice to store all different kinds of images together rather then use ~/Images/Upload/Profiles, ~/Images/Upload/Articles etc.I'm also storing thumbnails and they have a different GUID obviously so the thumbs will not be in the same folder as the original and somehow that doesnt give me a good feeling but I guess it should not matter but.Same goes for Galleries, I'm used to store galleries in folders like ~/Images/Upload/Galleries/12 , and now all the images from a gallery will be scattered around in different subfolders, is this a big performance hit?Do you guys have any other ideas for directory structures?

As you can probably see I'm a bit afraid to use this approach but since there will be lots of images maybe even more then the numbers i gave i have to let the control go I think :)

View 3 Replies

Suggested Directory Structure/placement Of ASHX Files?

Mar 18, 2011

I'm looking much more closely at the idea of universal conventions over configuration for my projects (versus 'home-rolled' conventions, or grabbing from a variety of conventions).However, I'm not seeing much, if anything, about the preferred location of ASHX files in, for example, ASP.NET MVC projects (as well as Web forms projects).

Is there a recommended directory structure for these? Perhaps there's a published specification with a much larger directory structure accounted for?My personal convention has been to place these within a top-level Handlers directory, but I honestly haven't personally seen any other projects that really do this.I suppose, depending upon what it does (for example, generating an image), that one could argue this might go into the Content directory, but it seems this directory is generally used for static files.(Aside: One could argue that ASHX files are not needed in MVC projects, but based on questions posted here, it appears ASHX files still have their place in MVC projects.)EDIT: Ignore MVC projects, since I'm suggesting that as one example. How about Web Forms, then?

View 2 Replies

VS 2005 Proper Updating Of An Existing Website?

Feb 8, 2010

So my application is on a production and running smoothly with no bugs at all. yay! My question: Is there's more efficient way of updating an existing ASP.NET application? Here's what i'm currently doing ( dont laugh that's why im asking xD):

1. I compile the project,
2. after compilation i transfer the compiled files via ftp. then i delete the existing files on my folder and put the newer one.

View 10 Replies

How To Structure A Website Using Membership

Oct 27, 2010

i have to build a ASPNET website on which some functionalities will be available to logged in users.I'm trying to understand the right thing to to in building my pages.

I've found the following code in Page_PreInit:
protected void Page_PreInit(object sender, EventArgs e)
{
if (Membership.GetUser() == null) //check the user.. Weather user is logged in or not
{
this.Page.MasterPageFile = "~/General.master";
}
if (Membership.GetUser() == "ADMIN") //check the ADMIN.. Weather ADMIN is logged in or not
{
this.Page.MasterPageFile = "~/ADMIN.master";
}
else
{
this.Page.MasterPageFile = "~/Member.master";
}
}

..but i don't' know if this is the right approach in designing an app.Is it right to switch at runtime Master page according to username/role?

View 1 Replies

Web Development - Website Structure / Flow?

Feb 17, 2011

ASP.NET, web form model.Is there any sample code/site that demonstrate a couple samples for regular website patterns/ templates? Like if I want to use tab to switch between different pages, should I put the code in a single page or in different page, and treat each tab as a page.Or if in a search page (just a single search bar and button), should I display my result panel in same page using dynamically enable the result panel, or just to another page? I want to find a general design pattern/ template.

View 2 Replies

Proper Way Of Using FormCollection In .NET MVC2 Create Method?

Jan 28, 2010

I am currently developing an application with the new ASP.NET MVC2 framework. Originally I started writing this application in the ASP.NET MVC1 and I'm basically just updating it to MVC2.My problem here is, that I don't really get the concept of the FormCollection object vs. the old Typed object. This is my current code:

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(FormCollection collection)
{[code]....

What are the benefits of switching to FormCollection in MVC2 and more importantly - how is it used properly?

View 2 Replies

Create Proper ICalendar Files With .ics Extension?

Feb 8, 2011

How can I create an icalendar file with minimum data, I try to make it as the following but somethings wrong,

when I try to import to my Google calendar, it says Events successfully imported but I cant see those event on my calendar

[Code]....

View 3 Replies

Visual Studio :: TT Template Files Not Proper Generated In Website?

Jun 5, 2010

When I use TT files to generate code, output files within Websites ar never properly generated. The resut is always some "Chinese character garbage", and the generated extension is always .cs (whatever the given outputextension may be)Generating text files works fine in class libraries, MVC websites and other "projects".Just not in plain websites. Is this a known issue, am I forgetting some swith or doing something wrong, can or can I not fix this?UPDATE: It seems to be a problem with the Tangible T4 Editor, after uninstalling this tool, it seems to work fine. However, I've lost syntax highlighting and intellisense then.Since this is an external tool, I don't think this forum covers that scope.

View 4 Replies

How To Create A Forum Like Structure In ASP C#

Jun 29, 2010

i want to create a forum like page in ASP ,C# where user can enter some question.
Administrator reply this question,according to if user does not satisfied with the solution then in same thread he may ask for further clearance.for example the forum of asp.net ( the current page)

View 5 Replies

Visual Studio :: Website Structure Settings?

Nov 16, 2010

I have an ASP.Net website as one of the projects in a Visual Studio 2010 solution. I have several files in my ASP.Net website project which are named correctly according to the expected pattern of *.aspx and *.aspx.cs, however, when I view them within the ASP.Net website project, they are not displayed hierarchically and are instead displayed in a flat file view adjacent to each other. How do I get the files to display hierarchically within Visual Studio as they are normally when I add a brand new .aspx page to the website project? I have been looking all over for a corresponding Visual Studio MSBuild or settings file that might be storing these hierarchical display settings but have found nothing as of yet.

View 1 Replies

How To Structure Website To Expose Mobile Version

Mar 11, 2011

Pretend i have an existing web-site, e.g.:[URL]i now want to expose a mobile version of this web-site:

m.stackoverflow.com
IIS, with its host-header name resolution, would normally require two web-sites to be created:
www.stackoverflow.com
m.stackoverflow.com

Except now i have two web-sites in IIS. This means i have to duplicate code/files between them. i don't need to (nor do i want to) duplicate all the "model" and "controller" code between two web-sites. i would much rather have one web-site that exposes a mobile version.

i could have the default page in m.stackoverflow.com simply perform a redirect to a mobile landing page on the "real" web-site:

m.stackoverflow.comdefault.asp:

<% Response.Redirect "www.stackoverflow.com/mobile" %>

Then the client will end up at (for example) www.stackoverflow.com/mobile/default.aspx.

This isn't what i want. i want it to appear to the browser that they are visiting m.stackoverflow.com.

So what i could do in IIS is have two host-header names for one IIS web-site:

stackoverflow.com
m.stackoverflow.com
and inspect the http-request HOST header: [URL]
Host: stackoverflow.com

[Code]....

View 1 Replies

Web Forms :: Link To Files Outside Website Structure?

Jan 10, 2010

on my current contract, they're telling me that they want to store and upload files outside the website structure - same drive, but a different path (like C:Files)

They also want a page inside the website to list them - that part I can do - I use System.IO to list all the files in that folder, and put an HTML hyperlink to each one of them.

However, when you click on the files, they don't open.

The boss tells me this can be done by somehow making this outside folder a share and using impersonation - but I don't get it.

View 1 Replies

AJAX :: Display Directory (Folder) Structure For Folder Outside Project In TreeView Control

Nov 22, 2015

[URL] ....

In above link you clearly describe (How to display directory folder structure).  

The path only works when the folder insight the project.

When I put folder outside the project it didn't work. What type of changes I need to made to acces the folder outside the poject. & How can I show other details of files which are including in folders Like. Last Modified Created Date, Modified Date etc..

View 1 Replies

How To Create A Simple Xml Structure Using The XMLWriter

Feb 21, 2010

I'm trying to create a simple xml structure using the XMLWriter in visual basic for the purpose of creating an html page based on user input.

Here's an example of what I've got so far:

[URL]

View 3 Replies

Architecture :: Trying To Create A Project Structure?

Jun 3, 2010

I am using asp.net 3.5 and I am trying to create a project structure (asp.net web solution with UI/Business/Data access) which would be like a base and ready for any new projects in my team and all could use this standard structure only as a base(outer boundary) and they can expand the structure. Also adding on to it I wanted to include certain features like adding libraries of reusable code/functions, so that every team member could use functions from my library within this base structure. To summarize the above, I need to create standard .net project structure/framework/architecture with resusable code library included in it. How can I do this..

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved