Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

razor

mvc upload file with model – second parameter posted file is null

August 31, 2022 by Magenaut

I have a simple model with 1 string property which I render on a simple view.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-3, c#, razor Leave a comment

MVC 6 Tag Helpers Intellisense?

August 31, 2022 by Magenaut

Is there supposed to be Intellisense for the new asp- tag helpers in Razor/MVC 6? I was following along on one of Shawn Wildermuth’s courses on Pluralsight and everything functions properly, but I thought I should be getting intellisense when I start typing asp- as an attribute on a tag.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, razor, tag-helpers Leave a comment

Render string containing razor-code in view

August 31, 2022 by Magenaut

Thinking of CMS use cases here. Imagine a view like this:

Categories ASP.NET, Q&A Tags .net, asp.net, asp.net-mvc, c#, razor Leave a comment

How to use razor engine for email templating with image src

August 31, 2022 by Magenaut

I’ve found this link on how to using Razor Engine for email templates in asp.net and it worked great. But I’ve tried to have a logo in the email template with an image.

Categories ASP.NET, Q&A Tags .net, asp.net, asp.net-mvc, c#, razor Leave a comment

Why does Razor _layout.cshtml have a leading underscore in file name?

August 31, 2022 by Magenaut

In the default ASP.NET MVC 3 project, layout & partial cshtml files start with an underscore

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc-3, razor Leave a comment

Using site root relative links in Razor

August 31, 2022 by Magenaut

I have a website that is working fine with Razor (C#) all the coding is working properly when I use my local testing (WebMatrix IIS).

Categories ASP.NET, Q&A Tags asp.net, c#, razor Leave a comment

How to use ? : if statements with Razor and inline code blocks

August 31, 2022 by Magenaut

I’m updating my old .aspx views with the new Razore view engine. I have a bunch of places where I have code like this:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-3, razor, syntax Leave a comment

Creating reusable HTML view components using Razor in ASP.NET MVC

August 31, 2022 by Magenaut

I have a Razor helper function that creates a re-usable HTML panel that saves me writing the same HTML over and over again.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, razor Leave a comment

Dynamically Produce Razor Views at Runtime?

August 31, 2022 by Magenaut

I am looking at building a web configurable layout engine, and would like to directly use the razor engine under the hood.

Categories ASP.NET, Q&A Tags asp.net, c#, razor Leave a comment

Emitting unencoded strings in a Razor view

August 31, 2022 by Magenaut

As ScottGu says in his blog post «by default content emitted using a @ block is automatically HTML encoded to better protect against XSS attack scenarios».
My question is: how can you output a non-HTML-encoded string?

Categories ASP.NET, Q&A Tags asp.net, html-encode, razor Leave a comment
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … Page17 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress