Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 116603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:12:14+00:00 2026-05-11T03:12:14+00:00

I’ve actually asked about this already in this post although we’ve gone back to

  • 0

I’ve actually asked about this already in this post although we’ve gone back to the drawing board and found it’s much more difficult than we initially thought. We develop a large (and very much relied upon) Intranet system which has evolved tremendously over the years.

The problem is that it uses frames to have a menu on the left, a header at the top and the main page thereafter. This is done to make sure the other elements are static whilst you’re able to scroll through the pages. Now we’ve come up with a solution to achieve this using a single page and CSS, but the problem lay in the actual architecture of our web application.

We’re wanting to shift to MVC architecture to make our pages more secure and manageable, however there is a major problem with this. Each section of our Intranet system has cross-links to other pages in other sections. So, for example, say we had a section called ‘Games’ and in that we had a section called ‘People Playing Games’ but this was actually just using a frame to point to a page which is in another folder on our Intranet system called ‘Personnel’ then ‘People.aspx’ (a pure example). How would the MVC architecture deal with something like that?

We have pages displayed in completely different areas of our Intranet that are in actual fact the same page. So having a URL like http://mysite/section/category/page would have to link to http://mysite/anothersection/differentcategory/page.

Hopefully this makes sense to people with experience in MVC architecture as well as pre-dated architectures such as the use of frames like we’re doing.

The questions raised would be:

  • Do we have to have duplicate pages?
  • Is there a way to cross-reference a page in different sections using MVC?
  • For an Intranet system consisting of about 400 different pages, is MVC the way to go?

Cheers

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:12:15+00:00Added an answer on May 11, 2026 at 3:12 am
    • You shouldn’t have to, just like the idea behind complex types. You can drop in min-views into a full fledged view to separate repetition.
    • You can use Html.ActionLink for creating links to pages and you can use Html.RenderPartial or Html.RenderAction to render a whole action into your page.
    • For sure. Like I said you can break up repetition into small components and include them when you want.

    For example…

    I am working on a small storefront application for a friend and I found myself creating a view for Adding and Editing an Product. Problem is — I was using the same layout for the fields. So I created a MVC User Control and dropped in the fields and did something like this.

    For Add..

    <asp:Content ID='DefaultContent' ContentPlaceHolderID='DefaultContentPlaceHolder' runat='server'> <% Html.BeginForm<CatalogController>(c => c.AddProduct(null), FormMethod.Post); %> <% Html.RenderPartial('ProductFields', ViewData); %> <%= Html.SubmitButton('Submit', 'Add') %> <% Html.EndForm(); %> </asp:Content> 

    And for Edit…

    <asp:Content ID='DefaultContent' ContentPlaceHolderID='DefaultContentPlaceHolder' runat='server'> <% Html.BeginForm<CatalogController>(c => c.EditProduct((Product)null), FormMethod.Post); %> <% Html.RenderPartial('ProductFields', ViewData); %> <%= Html.Hidden('Product.ID', ViewData.Model.ID) %> <%= Html.SubmitButton('Submit', 'Save') %> <% Html.EndForm(); %> </asp:Content> 

    And the ProductFields partial looked like this

    <% Product product = ViewData.Model; %> <% IEnumerable<Category> categories = ViewData['Categories'] as IEnumerable<Category>; %> <table>     <tr>         <td><%= Html.Label('Product.Name', 'Name') %></td>         <td><%= Html.TextBox('Product.Name', product.Name) %></td>     </tr>     <tr>         <td><%= Html.Label('Product.Price', 'Price') %></td>         <td><%= Html.TextBox('Product.Price', product.Price) %></td>     </tr>     <tr>         <td><%= Html.Label('Product.Description', 'Description') %></td>         <td><%= Html.TextBox('Product.Description', product.Description) %></td>     </tr>     <tr>         <td><%= Html.Label('Product.IsActive', 'Is active') %></td>         <td><%= Html.CheckBox('Product.IsActive', product.IsActive) %></td>     </tr>     <tr>         <td><%= Html.Label('Product.IsFeatured', 'Is featured') %></td>         <td><%= Html.CheckBox('Product.IsFeatured', product.IsFeatured.HasValue ? product.IsFeatured.Value : false) %></td>     </tr>     <tr>         <td><%= Html.Label('Product.CategoryID', 'Category') %></td>         <td><%= Html.DropDownList('Product.CategoryID', new SelectList(categories, 'ID', 'Name')) %></td>     </tr> </table> 

    So as you can see you can easily break up your pages as needed and include them and pass data into them very easily with ASP.NET MVC.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 192k
  • Answers 192k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer To do the wildcard search, use regular expressions and use… May 12, 2026 at 6:19 pm
  • Editorial Team
    Editorial Team added an answer Turns out captions are stored as post excerpts. So, <?php… May 12, 2026 at 6:19 pm
  • Editorial Team
    Editorial Team added an answer I'm not really familiar with this library, but I've had… May 12, 2026 at 6:19 pm

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into
I have text I am displaying in SIlverlight that is coming from a CMS
I am currently running into a problem where an element is coming back from

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.