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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:05:58+00:00 2026-06-06T00:05:58+00:00

I’m fixing bugs for some application, and I need help understanding the following lines

  • 0

I’m fixing bugs for some application, and I need help understanding the following lines of code:

Here,
View:

@Html.RenderControlText("WFD_CONSENT")

Controller:

public static MvcHtmlString RenderControlText(this HtmlHelper htmlHelper, string controlType)
        {
            return htmlHelper.Action("ControlText", new { controlType = controlType });
        }

The parameter controlType = "WFD_CONSENT" here.
I can’t get what the function htmlhelper.Action() is doing here.
Logically, this function RenderControlText() should be fetching some data from somewhere, but it doesn’t look like it. I’m at a dead end here.
This method RenderControlText() should fetch some text which I’ve saved somewhere, and display it.

EDIT: The Action() method has the follwing parameters: action-name and object routevalues?
What’s the second part: new { controlType = controlType } ? What does this routevalues do??

  • 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-06T00:05:59+00:00Added an answer on June 6, 2026 at 12:05 am

    I can’t get what the function htmlhelper.Action() is doing here.

    Take a look at the following blog post from Phil Haack where he explains child actions in details.

    The Html.Action helper basically executes a child action. A child action is a standard controller action except that it could be rendered in parallel with the execution of the main request.

    Html.Action("SomeAction", "SomeController") means that the SomeAction will be executed on SomeController and the result of execution of this action rendered to the output.

    In contrast: Html.Action("SomePartial") means that the SomePartial will directly be rendered to the output without the execution of any child controller and action.

    But in both cases all the processing happens in a single client request. It’s just that you have the primary controller action that is executed and rendered a view and inside this view you used the Html.Action helper to instantiate a child controller and action (which could return for example a partial view) and the result of the execution of this view is directly inserted into the output.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have thousands of HTML files to process using Groovy/Java and I need to
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
In my XML file chapters tag has more chapter tag.i need to display chapters

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.