ASP.Net MVC Modal Dialog

by Weifen Luo (DevZest) 15. May 2013 21:19
Download source code from CodePlex Currently I’m working on a project using ASP.Net MVC, which is my first ASP.Net MVC project. What really surprises me is, although ASP.Net MVC has been years old, there is no neat solution to open/close modal dialog. Here are some of the google search results with... [More]

Tags:

.Net | ASP.Net | ASP.Net MVC | JQuery | JavaScript | Code Sample

WPF Data Virtualization

by Weifen Luo (DevZest) 11. April 2010 19:12
Download DataVirtualization_Src.zip (40KB) Introduction In a typical WPF + WCF LOB application, displaying and interacting a large data set is not a trivial task. While several posts on internet forums discuss data virtualization, none of them has all the following: Selection, sorting and... [More]

Tags: ,

.Net | Code Sample | Freebies | WPF

Model-View-ViewModel (MVVM) Design Pattern with WPF Docking

by Weifen Luo (DevZest) 10. February 2010 13:37
Download Source: MvvmDemoApp.zip (183KB)   Today an evaluation user asked how to implement MVVM design pattern with WPF Docking. Here is a sample application modified from the MSDN Magazine article WPF Apps With The Model-View-ViewModel Design Pattern(by Josh Smith): the application c... [More]

Tags: ,

.Net | Code Sample | WPF

Object.ToString() Using Invariant Culture

by Weifen Luo (DevZest) 17. September 2009 23:29
Today, an Italian user of WPF Docking reported a bug in BrowserDockSample: the saved floating window position is not correctly loaded - it seems the loaded floating window is displayed at far right bottom of the screen. Taking the saved XAML text under the Italian culture: <DockLayout xmlns... [More]

Tags:

.Net

Local Machine Copy Protected Licensing

by Weifen Luo (DevZest) 14. September 2009 11:55
There are many ways to enforce the software licensing for local machine copy protection: CPU ID, network card mac address, hard disk serial number, etc. But they all have some pitfalls: the first is hard to get these information reliably; the second is these information is the privacy of the users a... [More]

Tags: , ,

.Net

Debug.Assert vs. Exception

by Weifen Luo (DevZest) 2. September 2009 17:40
In .Net programming, you can check for a condition and outputs the call stack if the condition is false: // Test that the index value is valid. Debug.Assert(index > -1); Or throw an exception under a certain condition: // Test that the index value is valid. if (index <= -1) throw n... [More]

Tags:

.Net

UAC Demystified

by Weifen Luo (DevZest) 25. August 2009 11:00
After posting the blog Programming Elevated Privilege / UAC, I realized I should post a separate blog to discuss UAC first. Before Window NT (Windows 3.1, Win95, 98), there is no concept of user or user privilege. At that time, Windows are built on top of DOS, and DOS is a very simple operating sys... [More]

Tags: ,

Windows Forms | WPF | .Net | Windows

Copyright DevZest, 2008 - 2017