<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>ASP.NET MVC on bradleycarey.com</title>
    <link>https://bradleycarey.com/tags/asp.net-mvc/</link>
    <description>Recent content in ASP.NET MVC on bradleycarey.com</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 05 Dec 2023 14:05:41 -0500</lastBuildDate>
    <atom:link href="https://bradleycarey.com/tags/asp.net-mvc/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Enum friendly names using attributes in C# ASP.NET MVC</title>
      <link>https://bradleycarey.com/posts/2015-08-02-enum-friendly-names-via-displayattribute-and-descriptionattribute-mvc-5-edition/</link>
      <pubDate>Sun, 02 Aug 2015 14:58:24 -0400</pubDate>
      <guid>https://bradleycarey.com/posts/2015-08-02-enum-friendly-names-via-displayattribute-and-descriptionattribute-mvc-5-edition/</guid>
      <description>&lt;p&gt;Are you using enums in dropdowns or radiobuttons or something similar? Instead of hard coding display names, a way of reusing these names was coined in the MVC 3 days that involved decorating the enum with the &lt;a href=&#34;https://msdn.microsoft.com/en-us/library/system.componentmodel.descriptionattribute%28v=vs.110%29.aspx&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;DescriptionAttribute&lt;/a&gt;. Judging from posts on stack overflow, this was a very popular method.&lt;/p&gt;&#xA;&lt;p&gt;When MVC 5 came out, it included new &lt;a href=&#34;https://msdn.microsoft.com/en-us/library/system.web.mvc.html.selectextensions.enumdropdownlistfor%28v=vs.118%29.aspx&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;helpers&lt;/a&gt; for &lt;a href=&#34;https://msdn.microsoft.com/en-us/library/system.web.mvc.html.enumhelper%28v=vs.118%29.aspx&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Enums&lt;/a&gt; (which was fantastic). However, MS used the typical DisplayAttribute (the &lt;a href=&#34;https://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.displayattribute.name%28v=vs.110%29.aspx&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;DisplayAttribute.Name property&lt;/a&gt; to be exact) instead of the DescriptionAttribute to pull this off.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Using SQL Server Reporting Services (SSRS) in an ASP.NET MVC project</title>
      <link>https://bradleycarey.com/posts/2015-06-08-using-sql-server-reporting-services-ssrs-in-an-asp-net-mvc-project/</link>
      <pubDate>Mon, 08 Jun 2015 14:21:49 -0400</pubDate>
      <guid>https://bradleycarey.com/posts/2015-06-08-using-sql-server-reporting-services-ssrs-in-an-asp-net-mvc-project/</guid>
      <description>&lt;p&gt;There are a handful of examples out on the internet on how to use SSRS from an ASP.NET website but all of the ones I came across seemed like hacks. They range from throwing an ASPX page with a ReportViewer control to complex JavaScript hacks. The following method is the one I have used for many years that adheres to the true MVC manner. This method connects to SSRS through the web service using Microsoft.Reporting.WebForms assembly.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
