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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:35:24+00:00 2026-06-18T16:35:24+00:00

In an ASP.NET MVC application I am working on, <text> tags are being used

  • 0

In an ASP.NET MVC application I am working on, <text> tags are being used in a .cshtml file.

Example –

<text>some text</text>

What functionality do they provide? I can not find any reference to them on the interweb 🙂

Thanks!

  • 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-18T16:35:26+00:00Added an answer on June 18, 2026 at 4:35 pm

    The are kinda the opposite of the @ tags…

    Standard in views you are in “HTML-mode”, you can then use a Razor-block like this:

    @{
      //Razor code
    }
    

    Razor will detect HTML-tags in a razor block and render that but sometimes you just need to show the literal text. That’s where the tag comes in… It switches back to HTML-mode without using an actual HTML-tag…

    So some text will render that exact text (WITHOUT the tag>) in your view:
    Convaluted example, but this code:

    <div>
    you have
    @{
     if(numItems == 0)
     {
       <text>no</text>
     }
     else
     {
       @numItems
     }
    
    
    }
    items
    </div>
    

    Will render “You have no items” or “you have 5 items” for example…

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

Sidebar

Related Questions

I'm working on an ASP.NET MVC 3 application and having some issues. I've got
I am working on asp.net MVC application. I have a folder with some sub
I am working with an ASP.NET MVC application. I have one master page having
I'm currently working on an Asp.net MVC Web application. In my solution, there're two
I am working on an asp.net MVC 3 application. I have a C# function
I'm working in an ASP.NET 3.5 MVC application where i've got a view with
I am working on a Facebook tab application. I am using asp.net MVC 2
Recently i am working on migrating the ASP.NET Web application to MVC. I am
I am working on maintaining a ASP.NET MVC application that has the following coding
I'm working on multilingual Asp.NET MVC application. In url i need to use category

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.