← Back to all blogs

Featured Posts

Posts in 'web'

Using C1Chart with MVVM

C1Chart for WPF can be used with the MVVM design pattern. The concept applied is the same as you would use for other data-aware controls. The ViewModel should expose the collection and binding properties and all these can easily be set in XAML of the Chart view. In this article I will walk you through the basic steps to bind the chart in MVVM pattern.

MVVM Commanding in Silverlight with C1Toolbar

ComponentOne Studio for Silverlight includes more than just the 50 or so UI controls you see in your toolbox. It also includes many little useful components which help bridge the narrow gap between Silverlight and WPF. Among these extra helpers is a set of commanding classes similar to WPF. C1Command allows you to write commands that not only work in-line with MVVM but are designed to enhance ComponentOne menus and toolbars. In this article I delve a bit into MVVM design patterns for commanding in Silverlight and show how using C1Command with C1Toolbar makes life simple.

Building multiple column displays in MVC

Looping through a list of objects to display a table of the items is easy in MVC. All you need to do is: 1: <table>

Solving the “A potentially dangerous Request.Form value was detected….” in ASP.NET MVC

Oftentimes an MVC application needs to POST text back that a user has entered into a text field or textarea. In a project I am working on I am using the TinyMCE WYSIWYG text editor to allow users to write articles. The editor allows for HTML tags such as , , , etc., and when submitting the form I have run across the infamous, “A potentially dangerous Request.Form value was detected” error. So, how do you get around this? You want the user to be able to use some HTML, but you need to secure your site as well from scripting attacks. Enter the [ValidateInput(false)] attribute. Adding this attribute to each of the ActionResults where you are expecting HTML tags to come in, will allow the Controller to continue with the action. This will work most of the time but is not exactly bulletproof for protecting your site. By doing a string.Replace() on the incoming content, and checking for suspicious and/or malicious code, you can secure your site a bit more. 1: [ValidateInput(false)]

Hello Wijmo

We have recognized the power of HTML, CSS and JavaScript and have

POSTing and GETting with jQuery and MVC

The jQuery library has an extensive set of AJAX functions which make it very easy to handle website functionality with all the Ajaxy goodness you’ve come to expect. However there are some gotcha’s when working with MVC and I thought I’d take some time to talk about them. The first thing to remember is to decorate your Actions with the appropriate Http verbs, either [HttpPost] or [HttpGet]. By default MVC 2 only allows [HttpPost] requests when requesting a Json response. Phil Haack has a great article on this at http://haacked.com/archive/2009/06/25/json-hijacking.aspx. In a project I am working on I want users to be able to add other users as friends, see if their friend is online, and if necessary, delete a friend. This jQuery function allows a user to add a friend: 1: function acceptFriend(friendId) {

Uploading photos with MVC

There are many articles online talking about MVC, but not many showing how to upload files. In a project I'm working on I need to have my users upload photographs and wanted them to be able to preview the photo before submitting it. Here's a screen shot of what I'm talking about. The application allows the user to select a photo, which is then previewed. The user can then add a caption and description of the photo. During this first round the Save button is bound to the following jQuery script: 1: function uploadMemberPhoto(elem) {

Charting Trendlines

Trendlines are an important tool used for analyzing data. They alert you with the general rate of increase or decrease of your Y data over your X data. A common scenario is measuring the rate change of sales price over time. Trendlines can be used to forecast data and therefore lend themselves perfectly to data analysis.

Wijmo 1.0 has Landed

Wijmo Version 1.0.0 landed in the wee hours of the morning. The team hunkered down for the night inside Wijmo HQ while blizzard-like conditions brewed outside. Nothing was going to stop Wijmo from launching, not snow, nor ice, nor temps below zero.

Thanks Philly XAML!

I have to extend a big thank-you to Philly XAML for inviting me to some talk to you last Thursday.  Shout out to John Angelini for leading Philly XAML, Dave Isbitski and Perficient for the pizza.  I hope all of you enjoyed seeing our OLAP for Silverlight components as much as I did talking about them.  It's not a stretch to say this is my favorite new product, and something I wish I had a year ago in my previous job.

Wijmo 0.9.0 Released

We are hard at working getting ready for Version 1 of Wijmo that is coming in December! In the meantime, we have released a build that is very close to what Version 1 will look like.

Filtering FlexGrid

C1FlexGrid for Silverlight and WPF now features Excel-like column filtering services. We've added this feature to the latest prerelease version of the control, and here is how it works. To use the new C1FlexGrid filtering feature, follow these steps:

Wijmo 0.8.2 Released

We have officially released Wijmo 0.8.2 Beta and are moving quickly towards the next version!

Getting Started with Chart3D

3D is the hot new thing these days (at least in the movie industry). The 2010 v3 release of Studio Enterprise introduces the first real 3D chart control for Silverlight and WPF. A real 3D chart is one that graphs X, Y and Z coordinates, as opposed to 3D representations of 2D charts (which are nice to look at but can be hard to read).