Tag Archives: C#

CodeMaid Visual Studio Extension

CodeMaid is an open source Visual Studio extension to cleanup and simplify C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

Visual Studio 2015 Update 3 Released

Visual Studio 2015 Update 3 with a mixture of improvements and support. Microsoft have said to have concentrated on reducing the high memory consumption which in turn sometimes affected performance. But there’s plenty more too.

Calling ASP MVC Controllers from jQuery Ajax

Using ASP MVC Controllers as a source for Ajax is one of the easiest methods around. I’ll give you four simple examples of calling a controller function, show you how to pass parameters both ways and then show how to call and display a Partial View.

Creating List of Test Data for a Class (C#)

Sometimes when you are developing an application you need to have a set of test data to run the system but you may not have the database in place, or you need the data to be the same each time you run the test. Here’s an example how to do this. In this example we… Read More »

ASP MVC Html.DropDownList with Values and Default Selection

ASP.NET MVC (Razor) has some great features and the Html Helpers take care of a lot of the coding for you. But sometimes I just want to do a simple dropdown, like: <select> <option value=”1″ selected=”selected”>1</option> <option value=”2″>2</option> <option value=”3″>3</option> </select> It’s nice to use a Helper; I can pass the selected value (or even… Read More »

ASP.NET C# – Exporting List<T> to Excel

Exporting List to Excel: There has been a number of time I have output the results of a database query or the analysis of some function onto the the screen when my customer will ask if they can download the data into Excel.

Customizing the CKEditor Menu on an ASP.NET WebPage

The CKEditor is a widely used full-function HTML WYSIWYG editor, downloaded almost 10 million times. There is a version specially for ASP.NET which you can download from ckeditor.com/download. It’s very powerful, customizable and is used with many other languages too. Once you get the code, follow the instructions and reference CKEditor in your project. In… Read More »