.net
How to create a CheckBoxListFor extension method in ASP.NET MVC?
I know there is a ListBoxFor extension method among the ASP.NET MVC Html helper extension methods, but I always thought that a checkbox list is more user-friendly than a list box.
Absolute path back to web-relative path
If I have managed to locate and verify the existence of a file using Server.MapPath and I now want to send the user directly to that file, what is the fastest way to convert that absolute path back into a relative web path?
Pattern for calling WCF service using async/await
I generated a proxy with task-based operations.
Getting current directory in .NET web application
So I have a web project, and I’m trying to get the root directory of the website using the c# method Directory.GetCurrentDirectory(). I don’t want to be using a static path as the file locations will be changing in the future. This method is running in my imageProcess.aspx.cs file, but where I thought it would return:
Currency format for display
Is there a way to format the correct currency representation for a country?
MemoryCache Empty : Returns null after being set
I have a problem with an MVC 3 application that is using the new .NET 4 System.Runtime.Caching MemoryCache. I notice that after a seemingly unpredictable time, it stops caching stuff, and acts like it’s empty. Consider this bit of code that I took straight from a test View in ASP.NET MVC:
ASP.NET MVC – How to show unauthorized error on login page?
In my ASP.NET MVC app, I have most controllers decorated with
I’m lost. What happened to ASP.NET MVC 5?
I’ve been keeping my head down working on various projects and apparently Microsoft has been busy making some big changes and it’s confusing the hell out of me. ASP.NET Core first came onto my radar when I installed Visual Studio 2017 last year and went to create a new project and suddenly had choices of .NET Framework, .NET Standard, and .NET Core. So I looked into them a little and saw that the latter two are, in some way, abbreviated versions of the full framework. I read this post by Scott Hanselman ASP.NET 5 is dead – Introducing ASP.NET Core 1.0 and .NET Core 1.0 I also found this, which steered me away from ASP.NET Core: Choose between ASP.NET and ASP.NET Core. My takeaway was “Core is new, you’re fine to keep using the full framework.” So I created a new ASP.NET MVC site using .NET Framework 4.6.2 and Microsoft.AspNet.Mvc 5.2.3.