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

  • Home
  • SEARCH
  • 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 9063631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:03:10+00:00 2026-06-16T16:03:10+00:00

Its a typical scenario, every model of application inherits one base class. This base

  • 0

Its a typical scenario, every model of application inherits one base class. This base class contains some property which behaves differently on different parameters which comes in form of query string.

I want to have a centralized mechanism to handle the scenario like when controller returns a view I catch the model and supply the value in property.

Is it possible?

  • 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-06-16T16:03:11+00:00Added an answer on June 16, 2026 at 4:03 pm

    You can make your own CustomActionResult class. Something like this:

    public class CustomActionResult : ActionResult
    {
         public override void ExecuteResult(ControllerContext context) 
         {
              // your logic here
         }
    }
    
    public ActionResult YourAction() 
    {
         return new CustomActionResult (viewModel);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m writing a server/client game, a typical scenario looks like this: one client (clientA)
I have an android application which downloads its information as JSON. A typical JSON
Chasing down some DB performance issues in a fairly typical EclipseLink/JPA application. I am
I'm using this page that has a very annoying alert(its typical JavaScript alert, so
I have the following typical scenario regarding an office and its staff: Each staff
in a typical MVC3 app with an EF model, each controller instantiates its own
I am working on a Java/Struts application that uses Tomcat 6.0.10. It's a typical
Its hard to explain this so I'll try my best. Is it possible to
Its posible to do this in actionbar sherlock? I know how set the icons
Its a interview question. Interviewer asked this basic shell script question when he understand

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.