Author: Michael Washington Created: 8/20/2010 8:49 PM RssIcon
All about Microsoft Visual Studio Silverlight LightSwitch
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…

By Michael Washington on 7/28/2013 10:33 AM

image

Logging into a website using a small keyboard, such as the one used on a cell phone, can be painful. A username and password that takes a user 5 seconds to enter on a full sized keyboard can take up to a full minute when using a small keyboard on a mobile device. This can make some mobile applications unappealing to the end-users…

By Michael Washington on 7/16/2013 9:46 PM

image

Xpert360 has recently released AIDE for LightSwitch, a Visual Studio extension that advances the LightSwitch design experience…

By Michael Washington on 6/28/2013 5:27 AM
Yesterday Visual Studio LightSwitch was released in a preview of Visual Studio 2013.

You can get it here: http://www.microsoft.com/visualstudio/eng/2013-downloads. You can read more about the new features here: http://blogs.msdn.com/b/lightswitch/archive/2013/06/27/announcing-lightswitch-in-visual-studio-2013-preview.aspx.

One new feature is described as: API support for refreshing data on lists and screens in the runtime app. That is the feature we will explore here.

The Sample Project We start with the application created in the tutorial: An End-To-End Visual Studio LightSwitch HTML5 Application.

When we open it up, it will be converted to the new Visual Studio 2013 format. However, to get it to run we have right-click on the first project…

image

...
By Michael Washington on 6/13/2013 8:22 PM

image

Visual Studio LightSwitch team member Huy Nguyen is a good person to follow on the Visual Studio LightSwitch forums. He typically provides well explained answers to difficult questions and usually provides code samples, and in some cases downloadable projects.

Previously, I created examples using techniques I learned from some of my favorite posts that he made. Those articles are:

  • Visual Studio LightSwitch Screen Navigation and Advanced JavaScript Examples
  • HUY Volume II - Visual Studio LightSwitch Advanced JavaScript Examples

In this article, I have created more examples from his latest articles…

By Michael Washington on 6/8/2013 6:46 AM

image

After using the Visual Studio LightSwitch HTML Client, you may wonder, how does it work? How does it turn the program we designed into an actual web application?…

By Michael Washington on 6/2/2013 3:14 PM

image

You can quickly and easily create PhoneGap Android and IOS applications from your Visual Studio LightSwitch HTML Client websites using VS Nomad from Redgate

By Michael Washington on 5/27/2013 11:12 AM

image

Visual Studio LightSwitch team member Huy Nguyen typically provides well explained answers to difficult questions, and usually provides code samples, and in some cases downloadable projects.  Previously, I created examples using techniques I learned from some of my favorite posts that he made. In this article, I have created more examples from his latest articles…

By Michael Washington on 5/26/2013 8:32 AM

image

Microsoft MVP and Visual Studio LightSwitch Insider, Alessandro Del Sole recently released an extension that “provides an easy way to install a number of JavaScript code snippets for the LightSwitch HTML Client created by the LightSwitch Team at Microsoft”. I decided to use it to help you create the code to implement the JQuery Mobile Reflow Table in Visual Studio LightSwitch that was covered in the article: LightSwitch HTML Client For The Desktop Web Browser

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