You are here:   Blog
Register   |  Login

 

Author: Michael Washington Created: 8/20/2010 8:49 PM RssIcon
All about Microsoft Visual Studio Silverlight LightSwitch
By Michael Washington on 11/23/2013 5:18 PM

image

Creating Visual Studio LightSwitch HTML Client screen templates is surprisingly easy. It is hard to think of any other tool that allows an end user developer to create a HTML SPA application where they only have to define their data model and are able to implement custom JavaScript components and not have to write any JavaScript themselves, yet have the option to alter the JavaScript that is written…

By Michael Washington on 11/20/2013 4:44 AM

image

The LightSwitch Extensibility Toolkit for Visual Studio 2013 allows you to create reusable HTML client screen templates… 

By Michael Washington on 11/1/2013 6:23 PM

image

Creating a LightSwitch website and setting security is easy. However, you must set up all your users manually. In some cases you want to allow users to self-register.

This topic has been covered in the article: Allowing Users To Self Register In Your LightSwitch Website. However, that article uses Web Forms (this article uses MVC) and does not allow users to change their passwords. Also, this article provides a landing page for the root of your LightSwitch application…

By Michael Washington on 11/1/2013 3:20 PM

image

You can use ASP.NET MVC with Visual Studio LightSwitch

By Michael Washington on 10/29/2013 4:00 PM

image

Visual Studio LightSwitch can be used as the backend data source for your AngularJs applications…

By Michael Washington on 10/25/2013 5:02 AM

image

You can consume your backend OData Visual Studio LightSwitch services in AngularJs. Coding your business layer in LightSwitch will save you a lot of development time and reduce the code you will be required to write…

By Michael Washington on 10/6/2013 9:34 PM

 

 

image

Handling complex business logic in a Single Page Application (SPA) is not a simple task. Process flow that is normally easily enforced in a traditional postback web application, can have security holes, because hackers can access the service methods directly...

By Michael Washington on 10/5/2013 6:28 AM

 image

The primary reason you may want to use WCF RIA Services with Visual Studio LightSwitch 2013 is to:

  • Combine more than one entity into a single entity.
  • Eliminate unneeded columns in an entity to improve performance (otherwise large amounts of data, for example pictures, will be transmitted even when they are not shown).
  • Implement calculated fields that allow the resulting values to be searchable and sortable.
By Michael Washington on 9/29/2013 6:01 AM

image

This article demonstrates one method to implement paging and sorting in the LightSwitch HTML Client. This example uses a PreprocessQuery that takes parameters…

By Michael Washington on 9/23/2013 9:16 PM

image

This article demonstrates how you can send server-side asynchronous emails using the Visual Studio LightSwitch HTML Client. Sending emails using LightSwitch has been covered before, notably by Paul Patterson, the difference with this article is that the emails will be sent asynchronously, so they don’t block the user interface or cause it to hang while the email is being sent…

By Michael Washington on 9/19/2013 5:13 AM

Sometimes the JavaScript Intellisense work in Visual Studio LightSwitch HTML Client wont work when edit a Screen code file…

By Michael Washington on 9/17/2013 6:21 PM

LightSwitchTree

When displaying hierarchical data, or lists inside of lists, in a business application, a tree control is usually used. However, a traditional tree control is not well suited to a mobile friendly application.  JQuery Mobile recommends using collapsible content blocks.

To enable collapsible content blocks in Visual Studio LightSwitch HTML Client, it is necessary to use the Jewel Lambert method described in jQuery Mobile Collapsible Content Control with LightSwitch. This will enable collapsible content, but it will not handle dynamic content inside the collapsible sections.

To enable dynamic content we can create dynamic HTML inside the collapsible content blocks…

By Michael Washington on 9/10/2013 6:42 PM

image

Soft landing Canada has followed up their popular video Compiled Help of the LightSwitch HTML MSLS.JS JavaScript, where they explain how the Visual Studio LightSwitch HTML Client core library, the msls.js file operates. With their new video, Navigate through the MSLS.JS Core JavaScript via a Compiled Help File with ease, they specifically cover using the CHM help file for the library…

By Michael Washington on 9/8/2013 7:56 AM

image

Blocky is a visual JavaScript programming editor. You can learn all about it at the following link: http://code.google.com/p/blockly/.

We will use the website to create JavaScript visually that we will then consume in LightSwitch. For our example we will create a simple number guessing game…

By Michael Washington on 9/5/2013 6:35 AM

I have used Visual Studio LightSwitch HTML Client for a number of years.  Here I am listing the top 10 things, in order of importance, that in my opinion, you need to know how to use to create applications:

  1. Data binding
  2. Promises
  3. WCF RIA Services
  4. ServerApplicationContext
  5. Before Open and After Close
  6. How to implement JavaScript plug-ins
  7. How to create records dynamically
  8. Custom Control (Creating a DIV)
  9. Client side queries
  10. Server side security
By Michael Washington on 9/1/2013 8:59 PM

image

This example application shows how you can integrate a complex API such as PayPal Adaptive Payments with Visual Studio LightSwitch.

I recently had a challenge where I needed to create a marketplace where people can sell items. I did not want to collect the money and pass it from buyer to seller because I would get stuck with losses if the buyer reversed the charges (for example because their account was used without their permission) and I had already passed the money to the seller. The solution was to submit two charges, one directly from the buyer to the seller, and one as a fee that would go to me for hosting the marketplace. In addition, I did not want to release the item being sold (in this case a picture download) until the funds had cleared. For example, if a person pays with a check it can take days for the check to clear…

By Michael Washington on 8/17/2013 10:08 PM
image

Jesus Rodriguez wrote a great article titled Why Does Angular.js Rock?. It is an excellent work and really demonstrates the power of  Angular. As I read through the article I realized that the functionality he demonstrates can of course be done in LightSwitch because LightSwitch contains a full featured JavaScript data binding framework to allow you to build SPA (Single Page Applications).

The thing that sets LightSwitch apart from other...
By Michael Washington on 8/14/2013 7:45 PM

image

The ComponentOne Studio for LightSwitch HTML suite of controls contains an Events Calendar control that allows you to create some really incredible applications. In this example we will use it to build a Visual Studio LightSwitch application that will allow employees to enter their vacations and time off so that their organization can easily track employee availability…

By Michael Washington on 7/31/2013 5:27 AM

image

When learning any new computer language or program, it is often helpful to start with a “hello World!” project…

By Michael Washington on 7/29/2013 5:47 AM

image

Visual Studio LightSwitch contains an advanced JavaScript data binding framework on par with any of the alternatives that you will find. It has the advantage that it also has an integrated business and data layer. The most important aspect is that it is built into and fully integrated in Visual Studio, the most advanced web development tool available.

The example application covered here is simple, but the most important thing to note is that it is simple to create, understand and most importantly simple to refactor…

Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation