Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

Prevent Caching in ASP.NET MVC for specific actions using an attribute

I have an ASP.NET MVC 3 application. This application requests records through jQuery. jQuery calls back to a controller action …

c# jquery .net asp.net-mvc asp.net-mvc-3
Append TimeStamp to a File Name

I have come across this problem several times in which I would like to have multiple versions of the same …

c# .net file datetime file-io
What is a singleton in C#?

What is a Singleton and when should I use it?

c# .net singleton
Word wrap for a label in Windows Forms

How can one get word wrap functionality for a Label for text which goes out of bounds?

c# .net winforms label controls
Selecting default item from Combobox C#

I have few items on my ComboBox items collection, and i'd like to select one item from this list and …

c# .net winforms combobox
How to add comments into a Xaml file in WPF?

I used this syntax as I found online but it throws an error: xmlns:x="http://schemas.microsoft.com/winfx/2006/…

c# .net wpf xaml comments
DateTime.Now vs. DateTime.UtcNow

I've been wondering what exactly are the principles of how the two properties work. I know the second one is …

.net language-features date
Getting assembly name

C#'s exception class has a source property which is set to the name of the assembly by default. Is …

c# .net reflection assemblyinfo
Procedure expects parameter which was not supplied

I'm getting the error when accessing a Stored Procedure in SQL Server Server Error in '/' Application. Procedure or …

.net sql-server stored-procedures
How can I determine if a .NET assembly was built for x86 or x64?

I've got an arbitrary list of .NET assemblies. I need to programmatically check if each DLL was built for x86 (…

.net assemblies x86 64-bit x86-64