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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:21:44+00:00 2026-05-25T11:21:44+00:00

Sorry, I think the error in Razor is not caused by Razor engine. There

  • 0

Sorry, I think the error in Razor is not caused by Razor engine.


There have been several similiar questions but I am still confused. Take the following code as example:

<% Html.RenderAction("partial"); %>

@{Html.RenderAction("partial");}

the aspx page runs well but Razor throw an error: “No route in the route table matches the supplied values.” And even this is wrong, too.

Html.RenderAction("partial");

So why? What’s the “@” really mean? What’s the difference or relationship between aspx and cshtml?

  • 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-25T11:21:44+00:00Added an answer on May 25, 2026 at 11:21 am

    Well lets start off with what the @ symbol means, this is used to tell the view that you are about to use razor view engine syntax, for example …

    @Html.something
    

    Also you can use c# within a block, for example …

    @{ 
     string something = "value";
    //you can later use that variable anywhere in the page
    
    }
    

    When rendering a partial view in mvc using razor it will look like this

    @Html.Partial("Folder Name/Partial View Name")
    

    there is no need to end razor code with a ;

    Razor is very smart and can tell when you are breaking back into html

    The folder in which the partial view is in under the folder Views. You can always put the partial view in the shared folder and you wont have to specify a folder name, it will check there by default I’m pretty sure.

    Think of a partial view as a user control. You can create partial views that just have links in it, or you can create a strongly typed partial view that will need to have a model sent to the containing view to render the partial or you will get an error.

    I hope this helps if you have any more questions let me know.

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

Sidebar

Related Questions

hello there and sorry for the stupid question but i think i might be
Sorry, but I think I am going mad. I have this in C++: std::stringstream
sorry i know this is a basic question, but i have been trying for
Sorry if this is duplicate,I would think it would be but couldn't find anything.
Sorry about the vague subject but I couldn't think what to put. Here's my
I'm sorry I could not think of a better title. The problem is the
Sorry for the bad title, but I couldn't think of a better one. I'm
Sorry for the slightly rubbish title. I could not think how to describe this
Sorry if this is better suited at serverfault, but I think it learns more
Sorry for the semi-generic title, but I'm still pretty new at rails and couldn't

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.