Category UI
Multiple ViewModels in a single MVC View
This post shows how to use multiple models in a single view. The models can be used in separated forms or together in one form. You could use each child model with a separate ajax post if required. Only properties in the parent class affect the child models, but a property in a child model […]
SignalR Messaging with console server and client, web client, WPF client
The code in this post is a basic example of a SignalR messaging system. I wanted to create an example which works for 3 client types, WPF, Web and Console. It is built upon the hello worlds provided on the asp.net/signalR website. The hub was then changed to add 3 methods, a simple method with […]
Turning off validation for properties in a MVC model
Sometimes it is required that some properties in a MVC model should not be validated, but the rest are required and should be validated in the client view. Mostly I cannot turn off client validation for all properties in the model. Here is an example of a Model class. I need to validate 2 properties […]
MVC Async File Upload
To use the upload html control inside an ajax request, the following steps need to be taken: Define an ajax function for the upload button Define the form for the upload Add the input file control to the form Handle the file in the MVC controller Return the json result, wrapped in a text item […]
MVC real time Diagnosis using SignalR
UPDATED 2014.04.12: latest version of SignalR used and all other packages. The idea of this example is to create a simple SignalR service, so that all Log messages can be sent to a client browser in real time. In the example, EventSource classes are used to send the logs to the ETW. Semantic Logging OUT-OF-PROCESS […]
Simple MVC Application using FluentValidation.MVC4
This is a simple example of MVC application using FluentValidation.MVC4. http://fluentvalidation.codeplex.com/ Create a new web application MVC4. Get the fluent validation using nuget: Create a validation rule set class: Now add the attribute to the model class: FluentDataModel Add the Provider to the Global.asax file App_Start() method And the validation works (Note: the dependency validation […]
Simple MVC Application using standard Validation (DataAnnotations)
This is a simple example of standard MVC validation provided in the .NET framework. Create a new MVC application. Edit the index.cshtml file. Important: for client validation to work, the scripts section must be included. (Defined per default in the _Layout View and the BundleConfig.cs in the App_Start folder) Create a Model Edit the web.config […]
Mobile or Desktop UI, which one(s) should I choose
When deciding which UI Frontend type is the best for your software applications, you should try to answer the following questions (also shown in the image). – Do you need to support both mobile and desktop end devices? – Can the target end users be divided into different user groups with different UI requirements? – […]
Designing web and mobile users interfaces, which approach
Which approach is best? Graceful Degradation, Mobile First, Desktop with Smart phone Apps…. With the new generation of smart phones, wireless devices etc, creating just a desktop web app is no longer a good solution for many business applications. Classic 3 tier development no longer supports the new client requirements. The most common approach which […]
Windows 8 Metro App deployment – Create Cert (pfx)
Creating the cert for Windows 8 Apps The following howto was taken from the following website: https://bytescout.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=296 Changes must be made to the makecert args, otherwise the Metro app won’t accept the pfx file! INFO: http://msdn.microsoft.com/en-us/library/windows/desktop/aa386968(v=vs.85).aspx .PFX file (Personal Information Exchange format) is the file containing both a public (.cer file) and a private (.pvk […]
