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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:17:32+00:00 2026-05-14T23:17:32+00:00

I have a partial view called StudentInfo.ascx. In it I have something like this:

  • 0

I have a partial view called StudentInfo.ascx. In it I have something like this:

<fieldset>
  <legend>Students Information</legend>
  <div>
     <label>First Name:</label>
     <label>Last Name:</label>
  </div>
</fieldset> 

I have another partial view called Detail.ascx which will need to display this StudentInfo.ascx. I did something like this:

<%= Html.RenderAction("StudentInfo"); %>

Is that right?

  • 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-14T23:17:32+00:00Added an answer on May 14, 2026 at 11:17 pm

    It depends on what you intend to do and if you use strong type views etc… By the info you provided it would be better to use RenderPartial() but your partial view doesn’t make any sense the way it is. It lacks significant details.

    RenderPartial vs. RenderAction

    If you use Html.RenderPartial(), it will work faster, but you will have to provide the data for your partial views in a single controller action that returns the parent (partial)view.

    If you use Html.RenderAction() it will work slower, but it gives you more flexibility and decoupling from the parent (partial)view, because data for a particular child partial view will be provided by always the same controller action that’s completely independent of parent (partial)view and controller action that returned it.

    How to choose

    Both are correct. It all depends on the problem at hand.

    If your partial views are not strongly typed and/or they are meant for posting you will most probably display them using RenderPartial() extension method.

    But if they do consume some data and they are strongly typed and they are used on multiple completely different views it’s probably much better to use RenderAction().

    Think of RenderPartial() as a placeholder that just renders some view and RenderAction() as a separate MVC request pipeline. So before partial view gets rendered the whole request pipline is executed:

    • request gets issued
    • controller action gets invoked, prepares data and
    • returns a partial view (that will be placed inside some other parent (partial)view)

    So much more overhead.

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

Sidebar

Related Questions

No related questions found

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.