June 2008 - Posts
For my Mix Essentials talk in South Africa I updated my Mix08 talk Building Great AJAX Applications from Scratch Using ASP.NET 3.5 and Visual Studio 2008 to have a little more Africa feel... I used some photos from my safari at Mala Mala here this week. Download the working sample and a set of starter demo files. Hope you enjoy it! Read More...
In my last post on Dynamic Data , I showed what Dynamic Data adds to the current ASP.NET data story. In this post I show how to customize the UI with Metadata, field templates, and page templates. I start off by showing off the Dynamic Data Wizard . File\New WebSite Create a new connection, in this case using SqlExpress It may take a minute, but the wizard will load the database metadata.. let's select just a few tables for this demo The next step is customizing the project that gets generated. For this demo, we will Add All. Next, we can do some further customization of the end application.. The resulting application looks great. Notice the automatic filtering, navigation between tables, editing and validation. Custom...
Yet still more time on traveling , I thought I'd do a little demo of a data oriented scenario with Silverlight. Here is what we are after: The data for the app is loaded from a Linq model and sent to the Silverlight client via a WCF services. As the user makes changes to the grid, we asynchronously update the Linq model on the service. The app uses local storage to cash the data on the local machine to reduce network calls. Create a new Silverlight application and associated web site. Let's start by creating a data model in the web site. Then drag over the Employees table. Then, Select Photo and delete it. It is a large binary blob that we don't want to be sending back and forth. Then, because we are going...
I've blogged in the past about injection attacks . Microsoft publishes additional new tools to detect and protect against injection attacks. The first tool, developed by HP, crawls web sites to automatically detect possible attacks, the second blocks dangerous requests from being executed, and the last one analyzes code to look for dangerous practice. http://www.microsoft.com/technet/security/advisory/954462.mspx Read More...
One breaking change you may have noticed between Silverlight 2 Beta 1 and Beta 2 is that WatermarkedTextBox is no longer available in the Silverlight SDK (System.Windows.Controls.Extended.dll). We decided to remove the control because in a future version of Silverlight, we will be adding a “Watermark” property to TextBox. Given this upcoming change, it does not make sense to have "WatermarkedTextBox" as a separate control, so we decided to remove the control from Silverlight 2. Kathy has all the details on her blog , but you can download the WatermarkedTextBox source code and unit test here. Read More...
A reader recently asked me to expand on the ASP.NET Authentication + Silverlight concept I started.. Specifically they wanted to do know how they can have a web service that returns different results depending on who calls the service (and what role they are in). Here is my quick walk through of adding that capability to the Silverlight+ASP.NET AppServices sample. First, let's look at the scenario we are trying to enable. I wanted to add a "Fire Bob" button. Hopefully, no line of business application has a "fire employee" button, but I thought it showed of the concepts well. Clearly only managers should be able to fire bob, so the button should be grayed out if you are not logged in or logged in...
I just published a new article on DotNetSlackers . The post is about generating scalable and secure image thumbnails. http://dotnetslackers.com/articles/aspnet/Generating-Image-Thumbnails-in-ASP-NET.aspx Read More...
More fun with the ViewModel or M-V-VM pattern - using the Dynamic Language Runtime in Silverlight to create a better glue between the View and its ViewModel. Read More...
I had a bit more time on my travels , so I cooked up this brief introduction to Dynamic Data . I tried a different approach this time by showing what Dynamic Data adds to our existing data story. More information on Dynamic Data: http://asp.net/dynamicdata To do this demo, install Visual Studio 2008 SP1 and the Dynamic Data update . I started off with a new, blank Dynamic Data Web Site But rather than going directly into Dynamic Data features, I thought I'd review were we are today with .NET Framework 3.5 briefly. Add New Item and select "Linq to Sql Classes" (notice this works nearly the same with Entity Framework Then add a couple of tables from Northwind. I am using Products, Categories and Suppliers...
I had a little time while traveling to South Africa so I thought I'd update my Silverlight FlickR demo to Beta2. Download the full solution read the full writeup (note: in the application, you can click on the image to advance to the next one) Overall, the changes were pretty minor, the most interesting one was a change in the way Isolated Storage is accessed. I set up a page level variable called appsettings: IsolatedStorageSettings appSettings = IsolatedStorageSettings .ApplicationSettings; Then, when the page is loaded, I initialized based on it. public Page() { InitializeComponent(); if (appSettings.Contains( "searchTerm" )) { this .searchTermTextBox.Text = ( string )appSettings...
More Posts
Next page »