Problem The following code grabs the HTML-encoded, multi-line content of a text field. It then splits the content on line […]
Tag: razor
Razor view to render simple scaffolding for complex type
Problem After several attempts to follow my intuition that this code can be refactored to something more DRY, I keep […]
Redirecting a user
Problem When the user clicks the first button (‘Back to List’ button), I redirect the user to the Employee List […]
Submitting a form
Problem I am using ASP.NET core entity framework. I am using an input submit button to call a method that […]
Should you declare variables to make Model property names shorter? [closed]
Problem Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add […]
Feature-based authorization
Problem Feature-based authorization It seems to me that if you rely on roles to authorize a web application it makes […]
Submitting a form
Problem I am using ASP.NET core entity framework. I am using an input submit button to call a method that […]
Monkeying around with Survey Monkey and Asp.Net Mvc
Problem Intro I’ve been a desktop dev for a long time now, and have never really had to monkey with […]
Is it “legit” to use a Linq query in a razor view?
Problem I have a Linq query in my razor view like below. Its just getting contacts that belong in the […]