About 6,190,000 results
Open links in new tab
  1. c# - Blazor vs Razor - Stack Overflow

    Razor is a solution for server-based architecture which can handle api logic and server-side templating, but it cannot offer client-side logic outside of javascript. Blazor is the next step (and hopefully …

  2. Escape the @ character in the Razor view engine - Stack Overflow

    13 @@ is the escape character for @ in Razor views as stated in Tobiasopdenbrouw's answer. Razor does, however, try to work out when an '@' is just an '@' and where it marks C# (or VB.NET) code. …

  3. c# - How to declare a local variable in Razor? - Stack Overflow

    I am developing a web application in asp.net mvc 3. I am very new to it. In a view using razor, I'd like to declare some local variables and use it across the entire page. How can this be done? It...

  4. How do you run C# written on a Razor page from a ... - Stack Overflow

    I would like to execute a C# method that I wrote directly on the razor page when a button is clicked on the page. What I'm finding is if I have the reference to the button on the page, it executes ...

  5. c# - How to write a comment in a Razor view? - Stack Overflow

    Aug 29, 2012 · Note that in general, IDE's like Visual Studio will markup a comment in the context of the current language, by selecting the text you wish to turn into a comment, and then using the Ctrl + K …

  6. c# - Razor Pages vs server-side Blazor - Stack Overflow

    Dec 10, 2019 · Razor Pages is used for server side web applications, just like in the good old days. Blazor is aiming to provide an alternative to popular JavaScript frameworks (like Angular or React), …

  7. c# - Preprocessor directives in Razor - Stack Overflow

    Explore how to use preprocessor directives effectively in Razor views within C# applications.

  8. c# - ASP.NET Razor page dropdown list - Stack Overflow

    ASP.NET Razor page dropdown list Asked 9 years, 11 months ago Modified 4 years, 5 months ago Viewed 26k times

  9. c# - Mix Razor and Javascript code - Stack Overflow

    A non conventional method to separate javascript from the view, but still use razor in it is to make a Scripts.cshtml file and place your mixed javascript/razor there.

  10. c# - ASP.NET Razor Page Render Page in Modal Popup - Stack Overflow

    Mar 4, 2025 · 0 i am new to ASP.NET Razor Pages and need to implement a Modal Popup which should display another Razor Page. So i have something like an Overview Page (Index.cshtml) …