• ReactJS and Orchard Collaboration, Part 1

    It is a while that I didn’t touch this web-blog. Now, finally I have time to write some posts regarding technical parts of Orchard Collaboration. In this post, I go into the detail of using Reactjs inside Orchard Collaboration. Few months ago, I demo the idea in the Orchard weekly meeting, but I didn’t have time to write about it.

    Orchard as a CMS, is very flexible in generating Content. Orchard Views are based on Shape pattern. Shapes provide a flexible mechanism to render any kind of data. A …

  • A better way of loading ContentItems in Orchard

    In this post, I want to explain the detail of the IExtendedContentManager service of the ContentExtensions module. The service is aim to improve the performance of loading ContentItem’s in the Orchard CMS. A ContentItem consists of several ContentParts and ContentFields. In most of the cases, there is a database table per ContentPart type. For example, TitleParts are stored in the TitlePartRecord table, BodyParts are stored in the BodyPartRecord and etc. The default IContentManager of the …

  • Progressive enhancement and Knockoutjs

    In these series of posts, I will show an approach that brings the ideas of Progressive Enhancement design into the Knockoutjs applications. Progressive enhancement is a strategy for web design that emphasizes accessibility, semantic HTML markup, and external stylesheet and scripting technologies.In simple words, progressive enhancement is the separation of HTML, CSS and JavaScript. Knockout is a JavaScript library that helps you to create rich, responsive user interfaces with a clean underlying …

  • Using Alternative Routes, How?

    Last week on the stackoverflow.com forums, I saw some posts about overlapping routes. “Ideally I would like to be able to tell the routing to look for a controller named X, if it exists use that. If it doesn't exist, redirect to Y controller and pass in X as a parameter.” said the writer of the post. Such situation happens in case we want to implement dynamic routes. Something like the following routes:

    routes.MapRoute(

    name="Default",

    url="{controller}/{action}",

    defaults= New { …

  • ASP.NET. Several Optional Parameters in body of Urls 2

    In this post, I describe the implementation detail of the Custom Routing. It extends the capabilities of the ASP.NET MVC routing in such a way that developers can define optional parameters in the Urls paths. The library detects which parameters are provided and which ones are missed in each request or url. In other words, we expects from the library to detect the route values as follows:

    http://[DomainName]/austria/tablets/samsung {Country = austria, category=tablets, brand = samsung} http:// …

  • ASP.NET. Several Optional Parameters in body of Urls 1

    Routing in the last versions of ASP.NET makes a great progress. Compare to earlier versions of ASP.NET, new Routing features are magical. Especially in ASP.NET MVC, It completely separates the routing from Controllers and makes the routing completely loosely coupled from the functional codes of Controllers

    But there are still some deficiencies. One of them that annoys me in several projects, is having multiple optional parameters in the body of a Url. Something like the following route. …

  • Changing WCF Service Implementation at Runtime

    In this post, I will show an approach that lets WCF to have two implementations for a WCF service. The proposed approach provides the ability to switch among the service implementations at runtime

    Last week, I work on a service oriented project that has two types of clients. Both of the types should be able to access the services on the server and both of the types should see the same interface on the server, but the services on the server should provide basic functionality for the clients in …

  • WPF Binding Beyond the Limitation of Name Scopes

    There are many situations that a property should be bind to something outside of its NameScope. There are many situations that a property should be bind to a DynamicResource. Many UI patterns like Composite UI Applications need a mechanism to support binding across modules. In this paper, I propose a mechanism to address those issues.

    One of the great UI patterns that partitions a complicated application to a collection of loose-coupled, simple, independent modules is Composite UI …

  • Server Side Processing in ADO.NET/WCF Data Services

    ADO.NET Data Services provide a very simple way for the servers to publish data. However, it lacks of flexibility in terms of processing the data before forwarding it to the clients. In this paper, I show a simple approach that provides business logic processing before forwarding data to the clients.

    Introduction

    The world of web services encounters another trend by REST-full services after the invention of SOAP based protocols. The acronym REST stands for Representational State Transfer; …

  • WCF Data Services / WCF Behaviors And Server Side Processing

    ne of the concerns around the data services is their ability to control the outgoing data. Unfortunately, Entity Framework provider of WCF Data Services does not support processing data before forwarding to the clients. Many applications need such processing to cover different requirements such as logging the outgoing data, manipulating the default data before sending to the clients, hiding some special data from the clients, combining different data sources with the data of entity framework …

  • 1
  • 2