<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Razor on CodingBlast</title><link>https://codingblast.com/tags/razor/</link><description>Recent content in Razor on CodingBlast</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 01 Feb 2018 10:57:53 +0000</lastBuildDate><atom:link href="https://codingblast.com/tags/razor/index.xml" rel="self" type="application/rss+xml"/><item><title>ASP.NET Core - InvalidOperationException: Cannot find compilation library location for package 'Microsoft.Win32.Registry'</title><link>https://codingblast.com/asp-net-core-invalidoperationexception-cannot-find-compilation-library-location-package-microsoft-win32-registry/</link><pubDate>Thu, 01 Feb 2018 10:55:22 +0000</pubDate><guid>https://codingblast.com/asp-net-core-invalidoperationexception-cannot-find-compilation-library-location-package-microsoft-win32-registry/</guid><description>&lt;h2 id="tldr"&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Add following line to your &lt;strong&gt;.csproj&lt;/strong&gt; file:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;MvcRazorExcludeRefAssembliesFromPublish&gt;false&lt;/MvcRazorExcludeRefAssembliesFromPublish&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;I was publishing a project I am working on to web server (Linux) and I had an issue with Razor Pages.&lt;/p&gt;
&lt;p&gt;However, it seems that this error occurs only when you precompile your Razor views (MVC views, Razor Pages). Why would you do that? Well, precompiling your views results in a smaller published bundle and faster startup time.&lt;/p&gt;</description></item><item><title>ASP.NET Core MVC - Custom Tag Helpers</title><link>https://codingblast.com/asp-net-core-mvc-custom-tag-helpers/</link><pubDate>Mon, 31 Jul 2017 07:06:17 +0000</pubDate><guid>https://codingblast.com/asp-net-core-mvc-custom-tag-helpers/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;In on of the previous posts we talked about &lt;a href="https://codingblast.com/asp-net-core-tag-helpers/"&gt;Tag Helpers&lt;/a&gt;, we also talked about &lt;a href="https://codingblast.com/asp-net-core-mvc-caching-taghelpers/"&gt;caching Tag Helpers&lt;/a&gt; and &lt;a href="https://codingblast.com/asp-net-core-mvc-form-tag-helpers/"&gt;form Tag Helpers&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;By creating our custom Tag Helpers, we have an ability to extend existing HTML elements or create our custom HTML elements.&lt;/p&gt;</description></item><item><title>ASP.NET Core Razor Pages - Handler Methods</title><link>https://codingblast.com/asp-net-core-razor-pages-handlers/</link><pubDate>Sat, 29 Jul 2017 07:44:43 +0000</pubDate><guid>https://codingblast.com/asp-net-core-razor-pages-handlers/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;In the &lt;a href="https://codingblast.com/asp-net-core-razor-pages/"&gt;last post&lt;/a&gt;, we talked about &lt;a href="https://codingblast.com/asp-net-core-razor-pages/"&gt;Razor Pages&lt;/a&gt;. Today we will talk more about handlers.&lt;/p&gt;
&lt;p&gt;We saw that we could have our code and model either in a &lt;em&gt;.cshtml&lt;/em&gt; file or inside of &lt;em&gt;code behind&lt;/em&gt;file that matches the &lt;em&gt;.cshtml&lt;/em&gt; - &lt;em&gt;&lt;strong&gt;.cshtml.cs&lt;/strong&gt;&lt;/em&gt; file.&lt;/p&gt;</description></item><item><title>ASP.NET Core Razor Pages – Introduction</title><link>https://codingblast.com/asp-net-core-razor-pages/</link><pubDate>Sun, 23 Jul 2017 13:25:25 +0000</pubDate><guid>https://codingblast.com/asp-net-core-razor-pages/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;With ASP.NET Core 2 around the corner, the hottest new thing that we are getting is Razor Pages. In one of the &lt;a href="https://codingblast.com/asp-net-core-2-preview/"&gt;previous posts&lt;/a&gt;, we briefly mentioned ASP.NET Core Razor Pages.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Razor Pages is a new feature of ASP.NET Core that makes coding page-focused scenarios easier and more productive.&lt;/p&gt;</description></item><item><title>ASP.NET Core MVC - Form Tag Helpers</title><link>https://codingblast.com/asp-net-core-mvc-form-tag-helpers/</link><pubDate>Tue, 18 Jul 2017 06:58:06 +0000</pubDate><guid>https://codingblast.com/asp-net-core-mvc-form-tag-helpers/</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;
&lt;p&gt;We already talked about &lt;a href="https://codingblast.com/asp-net-core-tag-helpers/"&gt;Tag Helpers&lt;/a&gt;, we mentioned some of the most used Tag Helpers and we also talked about &lt;a href="https://codingblast.com/asp-net-core-mvc-caching-taghelpers/"&gt;caching Tag Helpers&lt;/a&gt;. In this post, we will talk about form Tag Helpers.&lt;/p&gt;
&lt;p&gt;HTML or Web Form is used to collect an input from the user using various HTML elements like inputs, checkboxes, radio buttons, dropdown lists, etc. When using the &lt;strong&gt;&lt;form&gt;&lt;/strong&gt; HTML element we are usually talking about POST request, even tho we could use GET. However, GET is recommended for short, non-sensitive, amounts of data usually used to fetch some data based on provided parameters.&lt;/p&gt;</description></item><item><title>ASP.NET Core MVC &amp;#8211; Caching Tag Helpers</title><link>https://codingblast.com/asp-net-core-mvc-caching-taghelpers/</link><pubDate>Fri, 07 Jul 2017 23:24:10 +0000</pubDate><guid>https://codingblast.com/asp-net-core-mvc-caching-taghelpers/</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;
&lt;p&gt;Caching can significantly improve our application load time and responsiveness. What can we cache with cache Tag Helpers? Well, we cache HTML content. We usually cache content that does not change frequently.&lt;/p&gt;
&lt;p&gt;In one of the &lt;a href="https://codingblast.com/asp-net-core-tag-helpers/"&gt;previous posts&lt;/a&gt;, we talked about &lt;a href="https://codingblast.com/asp-net-core-tag-helpers/"&gt;Tag Helpers&lt;/a&gt;. We saw what Tag Helpers do, how we can use them and we saw how do we use some of the most used Tag Helpers.&lt;/p&gt;</description></item><item><title>ASP.NET Core MVC - All about Tag Helpers</title><link>https://codingblast.com/asp-net-core-tag-helpers/</link><pubDate>Sat, 01 Jul 2017 18:21:47 +0000</pubDate><guid>https://codingblast.com/asp-net-core-tag-helpers/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Tag Helpers provide us with means to change and enhance existing HTML elements in our views. Therefore, we add them to our views, and afterwards, they are processed by the Razor Templating engine which in return creates an HTML and serves it to the browser. Few Tag Helpers actually act as elements or actual tags (environment, cache, etc.).&lt;/p&gt;</description></item></channel></rss>