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 3/18/2014 4:43 AM

image

In this article we will create an end-to-end HTML application in Visual Studio LightSwitch. The purpose is to demonstrate how LightSwitch allows you to create professional business applications that would take a developer days to create. With LightSwitch you can create such applications in under an hour…

By Michael Washington on 2/17/2014 9:24 AM
image

You can create fully integrated HTML reports using ComponentOne’s Active Reports. The difference between this and the LightSwitch HTML reporting solution covered in the article: Creating Reports in LightSwitch HTML Client is the following:

  • Active Reports has a HTML5 report viewer that fully integrates into the LightSwitch HTML page (the Microsoft report viewer is shown using dynamic injection of a object tag)
  • Active Reports allows you to preview the report while in design time mode (the Microsoft report requires you to run the entire application to see the report)
By Michael Washington on 1/5/2014 3:32 PM

image

You can embed reports into the pages of your Visual Studio LightSwitch HTML Client applications and allow your end users to print them and export them to PDF, Microsoft Word and Excel…

By Michael Washington on 12/21/2013 8:22 PM

image

You can implement an alternative menu in your Visual Studio LightSwitch HTML Client application. In this example we will implement the Multi-level push menu

By Michael Washington on 12/14/2013 10:06 AM

image

Visual Studio LightSwitch HTML Client provides a unique opportunity for creators of JavaScript libraries to securely distribute and even sell their JavaScript code. With LightSwitch you can create HTML screen templates that will generate code that responds to data that the end-user developer has specified. Instead of selling the JavaScript library that cannot be secured, because JavaScript source is always viewable when an application is running, a JavaScript library developer is able to distribute a Visual Studio plug-in that dynamically creates code. This code is secure because it is a normal Visual Studio extension…

By Michael Washington on 12/1/2013 3:33 PM

image

 

Thomas Capps and I sat out to make a HTML SPA turn based game using Visual Studio LightSwitch. We wanted to make a game that can be played on all devices, so it had to be a SPA application because that technology is a must for decent performance on a phone or tablet unless you make a native application. Visual Studio LightSwitch HTML Client creates SPA applications, so we chose LightSwitch because development is faster and easier than other options…

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…

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