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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:01:57+00:00 2026-05-24T08:01:57+00:00

Does the approach of route matching for child actions differ from usual actions? In

  • 0

Does the approach of route matching for child actions differ from usual actions? In other words, do child actions have some autogenerated url to make matching similar to what is done for parent actions?

  • 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-24T08:01:58+00:00Added an answer on May 24, 2026 at 8:01 am

    No difference between parent or child action processing

    Any action follows the same route definition you’ve set in your Application_Start. That means parent actions as well as child ones. If you gave specific routes for all actions in your application, then you must provide route definitions for your child actions as well.

    Avoid route processing by converting to Html.RenderPartial()

    If you can of course… Child actions go through the same MVC processing as parent actions. It’s of course different if you can change your Html.RenderAction() to Html.RenderPartial(). These don’t go through the same processing hence are much much faster. Use Html.RenderAction() only when you can’t do it any other way or doing it in other way would be to hackish (increased complexity of the view’s model type etc).

    Actual Html.RenderAction() code excerpt

    If you look at the code of Html.RenderAction() it calls into context processing to execute as if a request was made to the server:

    // other code before this
    RouteData routeData = CreateRouteData(data.Route, routeValues, data.DataTokens, htmlHelper.ViewContext);
    HttpContextBase httpContext = htmlHelper.ViewContext.HttpContext;
    RequestContext context = new RequestContext(httpContext, routeData);
    ChildActionMvcHandler httpHandler = new ChildActionMvcHandler(context);
    httpContext.Server.Execute(HttpHandlerUtil.WrapForServerExecute(httpHandler), textWriter, true);
    

    We can se that it uses ChildActionMvcHandler handler which is inherited from MvcHandler, but is basically no different from it in terms of execution, because it doesn’t have any new or changed functionality related to processing. So it executes MvcHandler’s code basically.

    Outcome?

    Child actions execute as parent actions, using the same routing definitions, controller action matching (action method selectors), filters etc.

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

Sidebar

Related Questions

I have a web hosting that does not allow to edit iptables. From to
How does one approach building the mobile app version of one's Rails app, with
Obviously, the typical WebForms approach won't work. How does one track a user in
Does COUNT(*) have any significant impact for MySQL performance if query already has GROUP
Does anyone have a translate function for x/y positions after rotation in javascript? for
Does anyone know why UsernameExists wont return True. I must have my syntax messed
I have developed 2 applications with Play Framework, accessing different information, so it does
How does Clojure approach Separation of Concerns ? Since code is data, functions can
I have a tun/tap device which is used to read incoming packets from one
I'm working on a class library and have opted for a route with my

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.