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 6862821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:42:28+00:00 2026-05-27T02:42:28+00:00

I have an existing site build in c# 3.5 using asp.net mvc 1. There

  • 0

I have an existing site build in c# 3.5 using asp.net mvc 1.

There is a section of the site that requires additional behaviour. Basically there is a need to configure an object that is in one of the base libraries to have extended features. If these extended features have been specified on the object, then additional content/functionality should be exposed within the details page of this object.

In terms of extending my object with new functionality I was thinking of using the decorator pattern, creating an extendedobject with additional properties etc which I could persist to another database table. I would manage all of this within an extensions library.

My problems start at the controller/view level. All of the controller actions have already been written and are in the base library that I do not want to modify. I can make minor modifications to these – however, no breaking changes can be introduced, and all existing functionality should be maintained as the library is used elsewhere. I can however, create as many new controllers/services as I like.

To makes things more complicated, this extended functionality is not required for all of the existing objects within the site. The client will need to be able choose to convert certain instances of these objects to the extended type when viewing the details page for the object.

This makes my details page very messy. I now need to figure out if the object has been extended already, and if not show the controls which allows the user to convert it to the extended type. If the object has been extended then I will have to display out all it’s extended content out onto the page. This would be oki if the functionality was isolated to a specific section of the page (yay, one renderaction!), but the extended content will be output throughout various parts of the page. It seems messy doing a load of different renderactions everywhere, which should only output different content based on whether it is an extended object or not.

I half considered doing a single ajax query, and then dynamically rendering each of the sections using javascript when the details page has loaded.

I don’t want to break or change the existing libraries governing the base functionality of this site.

What is the best way to approach this type of problem?

  • 1 1 Answer
  • 0 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. Editorial Team
    Editorial Team
    2026-05-27T02:42:29+00:00Added an answer on May 27, 2026 at 2:42 am

    Could you create an interface matching the existing functionality. Then implement the interface with the new functionality and use a factory to load whichever one is required.

    I do realise this is a code change though but the new functionality could be in a separate project and the factory and interface wont be a massive change to the code.

    just a thought

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

Sidebar

Related Questions

I have an ASP.NET 3.5 e-commerce site that has an admin section. I want
I have an existing site that requires a background image on the home page.
I have a web site built using asp.net with ugly URLs like /DisplayContent.aspx?id=789564 .
I'm building a web site (using ASP.NET, MVC 3, Razor) and I'm not using
I am using Jquery Mobile to build a mobile version of an existing ASP.NET
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
I have an existing application that imports data from a web site api into
I have an Asp.Net MVC project. I added login with Google button. It appears
i have a customer that want to build site of unique bid like :
We have a web application written in ASP.NET for .NET 3.5, using standard web

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.