MVC :: How To Create Several Sites On The Same Domain
May 31, 2010
I want to create several websites on my domain, and I am wondering how to go about this in MVC? Should I put them all within one project, and create separate folders in each Views, Models and Controllers folder for each site, or would it be better to create a separate project for each site, although I'm not sure how I would integrate
I have two sites: a site written in vb (site 1), a site written in C # (Site 2). Site 1 running on a primary domain, eg http://abc.com. site 2 run as sub domain, eg http://site2.abc.com.Now I do not want to run the site 2 as a sub domain 2 again, which would put it in a folder of the site 1, for //abc.com/site2/Default.aspx.So now we have to configure in a site how to run the site 2.
I have two different web sites in Intranet zone. They are placed in one domain (like http://site1 and http://site2.site1). They use Windows Authentication for common domain (like mycorpUser1, mycorpUser2, mycorpUser3).First web site(http://site1) have iframe element with hyperlink to second web site(http://site2.site1). When user loads first web site he needs write login and password twice. How to make that http://site1 and http://site2.site1 ask authentication only once?
I'm still new to windows authentication. Basically, we have a page on http://externalsite.com that needs to be accessed only by an authenticated user originating from http://internalsite. The user on internalsite is already authenticated using windows authentication.I'm confused here. How can I validate the user and obtain their role so that i can not only validate that they are authentic, but to authorize them to use this page on externalsite.com?
I have multiple sites hosted at a hosting company that does not support domain pointing. Right now I have all of my domains go to the root directory and Response.Redirect() to a sub-directory which leaves me with mydomain.com/subdir/. Is there a way to make my own pointer to eliminate the /subdir/ portion of the URL?
I have several ASP.NET sites in IIS7 and would like to be able to group them into folders (or other mechanism, if available). Ideally, I would use a customer name or account number and put the sites under there.
Is there a way to customize the organization of sites in IIS7, or is there just the one 'flat' view?
I am a new bie to work with ASP.net. I want to create an application /site in asp.net which work like content management system. As we see many sites are now a days being build on JOOMLA. How can we create such a CMS (content management system) sites using ASP.NET.
I created a resiter.aspx page and active.aspx page. a user that register recieve authenticetion email and only after verifying the using a link verification (redirevt to active.aspx page) only then the user authenticated.
This pages are tested and working!
How can I use this page for several solutions? of course I can copy/past this pages. but then I will have to maintain the same code twice....I am looking for the best way to achieve
how do i create website which supports various screen resolution & Multi browser support (i.e 1024*768 ) and others using asp.net...
i have developed website in asp.net (vb) my monitor resoultion is 1024*768 but when i try to access my site in other monitor having the resolution more than 1024*768 then the controls are unmanaged .... in the webpage...
We are working on a SharePoint Site where we have created lot of webparts. Now so far we have been creating SitePages for these webparts manually and adding webparts to those. It takes lot of time in any environment and its difficult to move from environment to environment.What is the ideal way of doing it? How can we automate sitePage creation process and hopefully add webpart to it by some scripts?
we want all these requests to point back to www.site.com and not have to physically create the files and directories for every type of site... so if I just create a virtual directory (www.site.com/india) and point it to www.site.com... then I figure I can look at the URL and set some parameters/text/images accordingly to fill out the template
I am interested in developing Web Parts that can be used in our ASP.NET sites and our SharePoint sites. An example Web Part I have in mind is a Post Code (Zip Code) look up.- Visual Studio 2010 Premium- SharePoint Designer 2007- Windows 2003 Server (therefore WSS 3.0)- No SharePoint Server
how to make a domain name checker (testing for availability) for top-level domains?Eg. to check if the domain: stackoverflow.com or stackoverflow.dk is available or not. Do I need to be subscribed to a service to do this, or is there some simple magic behind such test?
I have a domain with name of http://MainDomain.com I want to create a site in this site and this site contains 14 sub domains there. I need a structure of sitemap which contains all sub domains. The list of sub domains is given below. Any suggestion is welcome...
Out of good design practice and organization, in which project should a local development SQL database be in a web based application? I'm just starting my assignment so I currently have 'CompanyName.Web.UI' and 'CompanyName.Domain' projects setup. Im using LinqToSql and creating my database from POCOS, meaning I'll have to create some code to generate the DB from my domain model. I.e.
DataContext dc = new DataContext(connString); dc.GetTable<TableType>(); dc.CreateDatabase();
i am working on a project that you can subscribe with your company name and you can use all features of site specificly to your company. for example company abcd can get its own url from our website like
company efgh can also login with its own url and see its product list.
I am thinking on the approach that will use Global.ascx file to distinguish companies, i will write code to extract company name from url in global.ascx for every valid request and in all the pages i will put this.form.action = request.rawurl.
I am using ASP.NET 3.5 and SQL SERVER 2008. And I have a very simple code within my ASP.NET page :
The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:
If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist.
If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database. Sql Server Express must be installed on the machine.
The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.
I need a way to create a regular expression from a string or an array of domain names. for example string array = [URL]. Once I click save I would want to create a regular expression that would match all 3 with or without '.com' extension. Then Another task would be to pull this data out of regular expression and put it back into an array.