Category: C#

REST service with ASP.NET MVC: Part 2

posted in Blog, C# by Ilya Ber.

This previous article I showed you how to use ASP.NET MVC controller as RESTful service. Now it’s time to build small application that serves as http client that consumes JSON, produced by our service. We’ll use WebRequest class from .NET Framework to send HTTP REQUESTS and JavaScriptSerializer class to build objects from JSON. First, lets create simple HTTP client for our application: 1. Simple enum to keep HTTP methods organized. public enum HttpMethod { Get, Post, Put, Delete } public … read more

REST service with ASP.NET MVC: Part 1

posted in Blog, C# by Ilya Ber.

In this atricle I’ll show you how to implement RESTful service based on ASP.NET MVC controller. REST stands for representational state transfer. It means that server sends it’s state (data) as a response to client requests. Most common REST service implementation is base on server, that produces JSON or XML data and client, that able to rend request to service, get the server response and use received data. Good idea is to use REST architecture when you need to make … read more

Compressing CSS with YUI Compressor for .Net

posted in Blog, C# by Ilya Ber.

It is a very common task to minimize JavaScript before deploying your application to production environment. But it is impossible to debug JavaScript while using minified files. The best solution is to minimize JS files while building release version and in this atricle I’ll show you how to use YUICompressor.NET in MSBuild task and run it as build event in your project. Step 1. Get a YUICompressor.NET It’s very easy: just go to YUICompressor .NET codeplex page and get most … read more

Recent Revive AdServer (Formerly OpenX Source) Expandable Banners

Revive AdServer (Formerly OpenX Source)  Expandable Banners The following example demonstrates a 600px by 150px banner served by Revive AdServer (Formerly OpenX Source)  and expanded to 600px by 300px on rollover. The flash creative can be either uploaded to creatives directory directly (FTP) or just as an another Revive AdServer (Formerly OpenX Source)  banner (preferred). When uploading the SWF creative, you do not need to replace any hardcoded URLs or indicate a destination URL – that would be done in the HTML banner setup. Essentially, we are just using it as a storage container for our creative, all impressions and clicks will be … read more

 Twitter  LinkedIn  Google+  Skype RSS

Get in Touch

  • r Phone:
    (416) 877 2844 / (647) 258 4847
  • h Email:
    company@blackriver.to
  • m Address:
    1454 Dundas St. East, Suite 124
    Mississauga, Ontario
    L4X1L4, Canada

Any Questions?

Email

Message