The Home Site of the Open Light Group

The OpenLight Group is an organization of Open Source Developers committed to creating high quality software for the community. While creating this software we hope to help others learn from our experience and information that we share via our the articles we publish. The Blog page of this site is a central location that our team members use to share this information.

We are heavily focused on Silverlight and DotNetNuke platforms. Several applications are already published that work with either or both of these technologies. Please view our Projects page to see a list of the software that our team members have developed.

Building Websites with DotNetNuke 5

  

Popular Posts

  • Deleting A Silverlight DataGrid Row With A Button On The Row Posted 4 years ago
    NOTE: If you feel that this is way too complicated, you can use the method described here: "A Simple DataGrid Delete Button Using View Model / MVVM". The difference is that you would not have a Delete Button on each row. Download the code: [at this link] The topic of this blog may not seem like such a big deal unless you tried to do it. I demonstrated a method to raise an ICommand in the tutorial “Using The Silverlight DataGrid with View Model”, however what that does is insatiates a second copy of the main View Model. You can call the ICommand, (for example to delete a record), and it will work. the problem is, that if you want to then remove the record from the DataGrid, you will discover that you can’t, because the View Model that you instantiated, is not connected to the .xaml page that the UI is on. Dan Wahlin covers this in detail, if you’re still confused on what the problem is. He also has a solution that may also work for you. The Problem ...
  • OData Simplified Posted 4 years ago
    Will OData eliminate the need for standard web services? Here is a simple example of how OData works. This example does not use a database connection so that you can easily see just the OData parts.     In Visual Studio 2010, create a New Project.     Make an Empty ASP.NET Web Application.     Add a New Item...     Add a WCF Data Service Paste in the following code:   using System; using System.Collections.Generic; using System.Data.Services; using System.Data.Services.Common; using System.Linq; using System.ServiceModel.Web; using System.Web; namespace ODataSample { public class Service : DataService<SampleDataSource> { // This method is called only once to initialize service-wide policies. public static void InitializeService(DataServiceConfiguration config) { config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); config.SetServiceOperationAccessRule("*", ServiceOperationRights.All); config.MaxResultsPerCollection = 100; config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2; } ...
  • Understanding The LightSwitch HTML Client Posted last year
    The Microsoft Visual Studio LightSwitch team was a bit disappointed when I finally walked through the door. I was late to the invite only meeting where they revealed the beta of the new Visual Studio LightSwitch HTML Client. Yes, as long suspected, Visual Studio LightSwitch, the tool that previously only created Silverlight applications (Silverlight by this time was already facing huge challenges in its adoption because it did not run on any of the popular mobile devices), will now create HTML pages. My flight from Los Angeles to Seattle was a bit late. I was so late in fact that the group was on their scheduled break. The team rolled back the slides and got me caught up. We get to the part about the HTML Client and I think the first words out of my mouth were, “Wow, that is great!” followed by “What about desktop?”. The LightSwitch team is too nice to actually slap their palms to their foreheads in front of me and yell “Doh! he doesn’t get it!” but, really they should have. I ...
  • Forms Authentication with SignalR Using Web Forms and Windows Forms Posted last year
    A Method To Provide Some Security With SignalR SignalR is a fantastic tool for creating real-time applications. It is not just limited to making chat applications, but we will use a chat application to demonstrate how you can implement Forms Authentication with SignalR. The reason you would want to use Forms Authentication, is that most websites use Forms Authentication now. Forms Authentication also works with all web browsers and most devices. SignalR According to www.ASP.net: SignalR is an open-source .NET library for building web applications that require live user interaction or real-time data updates. Examples include social applications, multiuser games, business collaboration, and news, weather, or financial update applications. These are often called real-time applications. You can find more about SignalR at this link: http://signalr.net/. The Sample Application When we run the LightBulbSignalRService project we see a simple SignalR application that uses Persistent Connections (rather than the Hubs that most examples use). When the application starts, we are not logged in so our connection GUID shows with a message that we are connected. ...
  • Simple Example To Secure WCF Data Service OData Methods Posted 4 years ago
    .csharpcode, .csharpcode pre { font-size: x-small; color: black; font-family: Consolas, "Courier New", Courier, Monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } Live Example: http://silverlight.adefwebserver.com/ODataAuthenticationSample/ So you want to use OData but you need to secure the data? There are a ton of ways to do this, but this covers a simple way using ASP.NET Forms Authentication. This is a follow-up to the previous Blog (http://openlightgroup.net/Blog/tabid/58/EntryId/99/Simple-Silverlight-4-Example-Using-oData-and-RX-Extensions.aspx) where we looked a simple Silverlight application that talks to an oData service. As with the last tutorial, we will not use a database, just a simple collection that we are creating programmatically. This will allow you to see just the oData parts.   ASP.NET Forms Authentication Eventually I will create a few DotNetNuke Silverlight modules that will use OData. DotNetNuke uses ASP.NET Forms Authentication. Actually, every web application I have ever created uses ASP.NET ...