C# (36)

First Hours with Visual Studio Code on Mac and Windows
2015-04-29 21:15:00

Today is one of those awesome days if you build stuff on .NET platform. They announced bunch of stuff during Build 2015 keynote and one of them is Visual Studio Code, a free and stripped down version of Visual Studio which works on Mac OS X, Linux and Windows. Let me give you my highlights in this short blog post :)

Compiling C# Code Into Memory and Executing It with Roslyn
2015-03-31 20:39:00

Let me show you how to compile a piece of C# code into memory and execute it with Roslyn. It is super easy if you believe it or not :)

Dependency Injection: Inject Your Dependencies, Period!
2014-11-18 12:39:00

Reasons on why I prefer dependency injection over static accessors.

Should I await on Task.FromResult Method Calls?
2014-02-24 21:14:00

Task class has a static method called FromResult which returns an already completed (at the RanToCompletion status) Task object. I have seen a few developers "await"ing on Task.FromResult method call and this clearly indicates that there is a misunderstanding here. I'm hoping to clear the air a bit with this post.

How and Where Concurrent Asynchronous I/O with ASP.NET Web API
2014-02-21 22:06:00

When we have uncorrelated multiple I/O operations that need to be kicked off, we have quite a few ways to fire them off and which way you choose makes a great amount of difference on a .NET server side application. In this post, we will see how we can handle the different approaches in ASP.NET Web API.

Hierarchical Resource Structure in ASP.NET Web API
2013-02-04 08:11:00

This post explains the concerns behind the hierarchical resource structure in ASP.NET Web API such as routing, authorization and ownership.

List of Resources on Asynchronous Programming for .NET Server Applications with C#
2013-01-05 22:01:00

I listed some resources on asynchronous programming for .NET server applications with C# which consist of blog posts, presentations and podcasts.

Streaming with New .NET HttpClient and HttpCompletionOption.ResponseHeadersRead
2012-08-01 06:27:00

How to consume a streaming endpoint with new .NET System.Net.Http.HttpClient and the role of HttpCompletionOption.ResponseHeadersRead

Disposing Resources At the End of the Request Lifecycle in ASP.NET Web API
2012-07-27 05:26:00

How to disposing resources at the end of the request lifecycle in ASP.NET Web API with the RegisterForDispose extension method for the HttpRequestMessage class

The Perfect Recipe to Shoot Yourself in The Foot - Ending up with a Deadlock Using the C# 5.0 Asynchronous Language Features
2012-06-02 20:01:00

Let's see how we can end up with a deadlock using the C# 5.0 asynchronous language features (AKA async/await) in our ASP.NET applications and how to prevent these kinds of scenarios.

.NET 4.5 to Support Zip File Manipulation Out of the Box
2012-05-17 15:19:00

One of the missing feature of .NET framework was a support for Zip file manipulation. In .NET 4.5, we have an extensive support for manipulating zip archives.

Asynchronous Database Calls With Task-based Asynchronous Programming Model (TAP) in ASP.NET MVC 4
2012-04-09 11:23:00

Asynchronous Database Calls With Task-based Asynchronous Programming Model (TAP) in ASP.NET MVC 4 and its performance impacts.

Slides of My MS Web Platform & ASP.NET MVC 101 Talks
2012-03-23 17:23:00

Today, I was at Computer Engineering Department of Mugla University and I gave two introduction talks on MS Web Platform and ASP.NET MVC 101.

Creating Custom CSVMediaTypeFormatter In ASP.NET Web API for Comma-Separated Values (CSV) Format
2012-03-22 08:09:00

In this post, we will see how to create a custom CSVMediaTypeFormatter in ASP.NET Web API for comma-separated values (CSV) format

My Take on Task-base Asynchronous Programming in C# 5.0 and ASP.NET MVC Web Applications
2012-02-26 17:21:00

I'm trying to show you what new C# 5.0 can bring us in terms of asynchronous programming with await keyword. Especially on ASP.NET MVC 4 Web Applications.

ASP.NET MVC Code Review #2 - A Way of Working with Html Select Element (AKA DropDownList) In ASP.NET MVC
2011-12-30 14:28:00

This is the #2 of the series of blog posts which is about some core scenarios on ASP.NET MVC: A Way of Working with Html Select Element (AKA DropDownList) In ASP.NET MVC

ASP.NET MVC Code Review #1 - File Upload With HttpPostedFileBase Class
2011-12-29 21:25:00

This is #1 of the series of blog posts which is about some core scenarios on ASP.NET MVC: File Upload With HttpPostedFileBase Class

How to Work With Generic Repositories on ASP.NET MVC and Unit Testing Them By Mocking
2011-12-22 17:05:00

In this blog post we will see how to work with generic repositories on ASP.NET MVC and unit testing them by mocking with moq

Generic Repository Pattern - Entity Framework, ASP.NET MVC and Unit Testing Triangle
2011-12-22 09:07:00

We will see how we can implement Generic Repository Pattern with Entity Framework and how to benefit from that.

Introduction to WCF Web API - New REST Face of .NET
2011-11-21 08:09:00

This blog post will give you an introduction to WCF Web API and show you how to get started with WCF Web API along with Dependency Inject support with Ninject.

ASP.NET MVC Server Side Remote Validation
2011-11-06 17:10:00

In this quick post, I will show you a way of implementing ASP.NET MVC Server Side Remote Validation just like ASP.NET MVC Remote Validation

Donut Hole Caching In ASP.NET MVC by Using Child Actions and OutputCacheAttribute
2011-10-30 09:40:00

This blog post demonstrates how to implement Donut Hole Caching in ASP.NET MVC by Using Child Actions and OutputCacheAttribute

ASP.NET MVC Remote Validation For Multiple Fields With AdditionalFields Property
2011-10-24 06:44:00

This post shows the implementation of ASP.NET MVC Remote Validation for multiple fields with AdditionalFields property and we will validate the uniqueness of a product name under a chosen category.

Check Instantly If Username Exists - ASP.NET MVC Remote Validation
2011-10-19 04:07:00

This blog post will walk you through on implementation and usage of ASP.NET MVC Remote Validation. As a sample, we will validate the availability of the username for membership registration.

Working With JQuery Ajax API on ASP.NET MVC 3.0 - Power of JSON, JQuery and ASP.NET MVC Partial Views
2011-09-09 17:23:00

In this post, we'll see how easy to work with JQuery AJAX API on ASP.NET MVC and how we make use of Partial Views to transfer chunk of html from server to client with a toggle button example.

TinyMCE HTML Text Editior & ASP.NET MVC - Setting It Up Has Become Easy With Nuget
2011-09-07 06:15:00

One of the best Javascript WYSIWYG Editors TinyMCE is now up on Nuget live feed. How to get TinyMCE through Nuget and get it working is documented in this blog post.

ASP.NET Web Forms : Calling Web Service Page Methods Using JQuery
2011-05-15 20:58:00

In this blog post we will see how to consume a web page methods using JQuery on ASP.NET Web Forms and use ASP.NET page methods as services. You will find some cool stuff about other things as well :)

Parent / Child View In a Single Table With GridView Control On ASP.NET Web Forms
2011-04-28 13:13:00

This awesome blog post will demonstrate how to create a complete, sub-grouped product list in a single grid. Get ready for the awesomeness...

How To Handle Multiple Checkboxes From Controller In ASP.NET MVC - Sample App With New Stuff After MVC 3 Tools Update
2011-04-27 11:10:00

In this blog post, we will see how to handle multiple checkboxes inside a controller in ASP.NET MVC. We will demonstrate a sample in order to delete multiple records from database.

We Love .NET 4 - Clean Web Control IDs with ClientIDMode Property to Static and Predictable
2011-03-24 17:58:00

In this blog post, we will see how ClientIDMode property of Web Controls makes our lives easier. Also, we will demonstrate couple of scenarios on how it works...

ASP.NET MVC : Throwing 404 Exceptions Manually From Controller When Model is Null
2011-02-17 09:44:00

This post is a quick demonstration of how you can throw HttpException of 404 manually from a controller on ASP.NET MVC when the model you're passing is null

Windows Live Writer Codehighlighting Plugin For Alex Gorbatchev's SyntaxHighlighter
2010-12-22 07:44:00

Windows Live Writer Codehighlighting Plugin For Alex Gorbatchev's SyntaxHighlighter is available on codeplex

Sending E-mail to All List of Membership Users with ASP.Net Using Built-in Membership API
2010-11-26 09:23:28

Most of the Asp.Net developers are using Membership class of Asp.Net and in this blog post we will see how to send e-mail to all of the membership users at once...

How to Delete a Previously Created Cookie With C# ASP.Net / Deleting Cookie ASP.Net
2010-10-03 08:13:12

You created a cookie on you asp.net forms application now you would like to delete it. This quick article show how to do the trick...

How To Use C# (C Sharp) Switch Case, Switch Case Samples
2010-04-16 08:51:47

After you read this article, you will be able to use the 'Switch Case' Function on your C# Projects. This function becomes so handy with DropDownList & RadioButtonList !

How to Validate A CheckBox in ASP.Net 3.5 / Checkbox Validation Control Sample Code in ASP.Net, C# (C Sharp) And Visual Basic
2010-04-06 08:01:56

This article will give you an idea to validate a checkbox in ASP.Net 3.5 ! It is so easy to implement and so handy to use !