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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:19:01+00:00 2026-06-12T11:19:01+00:00

In many MVC frameworks there is an option to invoke actions from view. For

  • 0

In many MVC frameworks there is an option to invoke actions from view. For ASP.NET MVC it is called RenderAction in other frameworks such feature is called SubActions, Viewlets etc.

I need to place in EJS layout file list of latest news (comming from DB) and this should be visible in a sidebar on all views that use this layout. I don’t want to duplicate logic of selecting and passing news list on every route.

Is there any clear way to do this in Express?

  • 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-12T11:19:02+00:00Added an answer on June 12, 2026 at 11:19 am

    I haven’t found any RenderAction implementation, but using app.locals data can be shared between routes (list of latest news, for example).

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

Sidebar

Related Questions

I have a web project in Asp.net MVC where in many pages, there is
I have an ASP.NET MVC web site. I have many actions which require authentication
I'm new in ASP.NET MVC, I have many actions in my controllers, so they
I think there are not many people who don't think that ASP.NET MVC is
I have been looking at many ASP.Net MVC client side validation ideas including xVal.
I'm planning to design simple website using ASP.NET MVC new technology. Many concepts are
Recently I've read, and implemented 80% of examples from Pro ASP.NET MVC Framework ,
Background: Migrating an application from ball of mud to MVC. Many classes contain HTML
Many MVC frameworks (e.g. PHP's Zend Framework) have a way of providing basic state
I've been using the entities framework with ASP.NET MVC and I'm looking for an

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.