If I have an application in WebPages, I would like to know how to enable multi-site capabilities? I understand the _SiteLayout.cshtml file or what not can handle the template for one site, but how about if I wanted to change that for a different site? The different site would be passed to the application by ServerVariable (domain name), so I'm assuming there would need to be some type of controller in place to handle this? But WebPages doesn't have controllers and I'm not learning MVC now. What would be my options at this point? Thank you.
How to handle a multi-site environment
46 Views Asked by Control Freak At
1
There are 1 best solutions below
Related Questions in RAZOR
- Getting and passing MVC Model data to AngularJS controller
- Implement Onfailure in webApi controller
- Dynamic roles list in CustomAuthorize ASP MVC
- Jquery: Change contents of <select> tag dynamically
- Submit Button on Razor View doesn't call Action Result - MVC
- ASP MVC 5 Html.EditorFor not working / Unable to access/use Default Editor Templates
- Convert string to date time in a `cshtml` file using razor?
- jQuery: How to traverse / Iterate over a list of object
- Switching CSS Just for that view?
- Hyperlink in table header is not rendering
- why Special characters apostrophe and others shows like this ’, in HTMl file
- Display a tooltip with Html helper
- Cannot access conditional Razor variable as href
- MVC How to bundle html templates of type "text/html"?
- Set a label value for a checkbox helper in asp.net mvc
Related Questions in WEBMATRIX
- WebMatrix PHP Query Not working
- List/Array of dates to be used by jQuery
- How to fix the username and password for WebMatrix and SQL Server Compact?
- INSERT statement for One to Many relationship
- Insert statement with Output Clause
- Error while publishing my application on Webmatrix. Error says "Cannot access a closed Stream"
- Using wildcards when mapping routes with MapWebPageRoute
- ASP. NET Error: XML literal cannot appear here unless it is enclosed in parentheses
- SQL Server CE: Select first value in column
- PHP upload limit (Webmatrix)
- Trying to select from foreach in foreach loop
- Visual Studio "Open as a Web Site" context menu option
- Setting up Outgoing Email settings in Webmatrix
- Visual Studio 2012 loading debug DLLs from wrong directory, but only for WebMatrix 3 projects?
- Webmatrix - List item as a search term?
Related Questions in ASP.NET-WEBPAGES
- understanding audio player and post back of web page
- Using wildcards when mapping routes with MapWebPageRoute
- How to call a variable from 2 different views
- how to set error message for google api request if location is wrong
- How access page controls (label, timer, etc) inside a thread (ASP.NET Web Forms)
- Which one is better or both are same?
- Asp.net Razor Web Pages Binding Values To Object
- If any possibility connects database in amcharts (pie Chart) in asp.net?
- Can a User Spoof the Google Authenticated Domain for a Gmail account?
- What's the Difference Between OAuthWebSecurity's "RequestAuthentication()" and "VerifyAuthentication()" methods in ASP.NET-Webpages with C#?
- How to dynamically generate imagebutton in div in ASP.net web application using C#?
- Pass Values between asp.net webpages while cannot modify values
- select control data loop is returning error
- How Can I implement monthly attendence chart (ASP.NET)
- VB Razor Web Page to render Image from remote URL on page?
Related Questions in WEBMATRIX-2
- Loading json data to highcharts with multiple series
- Why websites created in WebMatrix not visible in IIS?
- Login failed for user 'sa'. WebSecurity.InitializeDatabaseConnection
- How to prevent overriding of CSS
- Localization issue with date formats using Classic ASP on webmatrix 2
- Webmatrix 2 template creation failure
- How use custom class in WebMatrix v2?
- After WEbmatrix installation both VS2012 and Webmatrix is not working
- Error running node app in WebMatrix
- Do I need to do anything "special" to use the WebMatrix database helper in Visual Studio '12?
- Sending form to email in webmatrix
- How to convert request querystring to HMACSHA256 in webmatrix
- Parameter Placeholders are causing an error in Webmatrix
- How to handle a multi-site environment
- Keep input data after posting
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could check the requested domain and then select the layout page, like this: