Learn ASP.NET Core Tag Helpers in this 3 Hour Video on Pluralsight

ASP.NET Core Tag Helpers are the best new feature and replaces html helpers to make programming Razor view pages fun and easy. This 4 minute sample video is from the course "ASP.NET Core Tag Helpers" on Pluralsight.com. The full three hour course gives you everything you need to know to both work with all the Tag Helpers built in to ASP.NET Core as well as author your own simple and advanced Tag Helpers. Check out the full course here: https://www.pluralsight.com/courses/aspdotnet-core-tag-helpers In addition, here is a link to the documentation on built-in tag helpers written written by Peter … Continue Reading

Looking Forward to Talking about ASP.NET Core Tag Helpers Tonight at South Bay.Net in Mountain View

  I’m mostly complete on my Pluralsight course on ASP.NET Core Tag Helpers.  In this 1 hour presentation, I’ll talk about the highlights and what I love about Tag Helpers. Hope to see you there! https://www.meetup.com/BayNET/events/238822703/ German International School of Silicon Valley 310 Easy Street, Room 27, Mountain View, CA … Continue Reading

Name Collisions with Asp.Net Webapi and How to Avoid

I love the simplicity of using ASP.NET WebAPI for building simple web rest services.  No special calls to create JSON, simple REST conventions implemented with the methods GET,POST,PUT and DELETE and very straight forward interfaces. The thing that annoys me is the naming convention.  In my case, I’ve create a folder /rest on my web server and I put all my WebAPI controllers there.  An example of a controller looks as follows: [crayon-599607db35ff0120671050/]   The problems comes up when you decide you want to have a different FAQ controller for different parts of the web site.  The obvious solution is to drop the REST services into sub directories.  Unfortunately, since the class name above does not … Continue Reading

Safely Encoding Strings On ASP.NET MVC Razor Pages (sometimes)

  Background Sometimes, we want to let html tags come through our web pages from user defined content.  If for example, you have a workflow that requires approval before publishing, there are times when you want to let the author put through html, links, etc.  Solution In Visual Studio write a simple HtmlHelper method that allows for a flag you can pass through.  In my case, I have a database table with a boolean column “allowhtml”.  If this is set, then instead of using Html.Raw(…) I can use my own helper method, pass in the allowHtml value and if it is set true, then allow the not encoded Html to flow through. Here is that helper method: namespace WebAPI.Code.Helpers { public static class … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: