Category Archives: C#

.NET, C#, Mono, EF, ASP.NET, and everything else surrounding C#.

Getting ready for “Async Main” for C#

Here is the MD for Async Main https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.1/async-main.md The problem is, you want to code for it now, so that you don’t have a pain to update lots of code later. The solution is add it now, sorta. public class Program { … Continue reading

Posted in Brian's Code Extreme, C# | Leave a comment

Setting up my VSTS build environment

This is a summary of nightmares and preferences. This is a C# ASP.NET MVC Core project. Do not assume that because it builds locally, it will build and deploy from the VSTS services. The items below are breakdowns of the … Continue reading

Posted in Asp.Net, Brian's Code Extreme, C#, CSS, HTML, Install and Upgrades, Internet, JavaScript, Open Source, VSTS | Leave a comment

Securing your base code for SPAs using ASP.NET MVC the easy way

For this you will only need 1 controller, and 1 optional view. The controller is to provide routing details to the DB and feed back to the view. The optional view then embeds the host page internally, or the controller … Continue reading

Posted in Asp.Net, Brian's Code Extreme, C# | Leave a comment

Word of the day!

TUPLE as in System.Tuple Look it up  

Posted in Brian By Experience, Brian's Code Extreme, C# | Tagged | Leave a comment

Date handling in C#

To understand this, walk the code. You can see it work at https://dotnetfiddle.net/LLl1Za

Posted in Brian's Code Extreme, C# | Tagged | Leave a comment

How to have your asp.net site convert images to embedable strings.

C# code to encode images into HTML How to embed these image into CSS How to embed these images into HTML

Posted in Asp.Net, Brian's Code Extreme, C#, C-Langs, CSS, HTML | Leave a comment

Why hasn’t MS updated the SSRS Viewer in a while?

From https://connect.microsoft.com/SQLServer/feedback/details/798562/add-auto-refresh-option-for-reports-on-manage-report-page-to-report-manager Thanks for your feedback! When the report is going through the actual Report Viewer (e.g. Report Manager), we are using .NET to refresh the content, which runs into the issue you described in the initial post. To workaround … Continue reading

Posted in Brian's Code Extreme, C#, Servers, SQL | Tagged , | 1 Comment