You are here:   Blog
Register   |  Login

 

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…

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