Archive for the ‘ASP.NET’ Category

Wpf DataBinding And INotifyPropertyChanged

In WPF, data binding between a binding target which is normally a ui control property (DepdencyProperty) and  a binding source which is normally the view model property can be two way.  There is hardly any issues of binding from target to source, that is the changes on UI are quite reliably pushed back to source the view model, but to get UI updates every time model changes is not very obvious.

Read the rest of this entry »

Tags:

Magic @Html.DropDownList

This is observed in MVC5

When one of properties of model is associated with another list, it is normal practice that  list is saved in the ViewData as a SelectList , then in the View, the same list is retrieved back and passed to the html helper @Html.DropDownList(modelpropertyname,the SelectList)

What puzzled me is the second parameter, the SelectList could be ignored or even is attempted to be retrieved in a wrong way,  the List could still be loaded correctly. Read the rest of this entry »

Tags:

WCF in MVC

Many years ago I have written an article about demystifying WCF in Asp.Net, today I am going to show you how to create and host WCF services in a MVC environment, in the article mentioned earlier, it is said that WCF service is a ServiceHost, what is it then for WCF service consumer? So you will also be able to see in here that how to create a service consumer in a demystified way.

Read the rest of this entry »

Tags: ,

Run Nant script on TFS Build server

I believe that all the tasks that nant does can be done by TFS build server as well, but TFS build tasks can only be performed on a TFS server, due to this reason we might end up defining the automated build process in two formats: TFS build on server, nant in a local development environment.

So question will be how about running nant script on TFS build server?

Read the rest of this entry »

Tags: ,

Expression Tree and Merge of Expressions

The Expression class in C# allows you to build computational expressions in run time. Most of examples you can find are showing you how to build a simple scenario of a binary expression, as a tree it will have many levels, then the question is how to combine expressions? Or how to merge expressions? Read the rest of this entry »

Page 2 of 1012345...10...Last »