May 2007 - Posts
This post contains a writeup of an Ajax pattern I demonstrated at one of my MIX07 talks around improving the indexability of Ajax and Silverlight, and in general RIA applications as part of an SEO effort... Read More...
One of my favorite features in Orcas is the ability to leverage the ASP.NET Application services from any client application (ASP.NET, Ajax, WinForms, WPF, or even Silverlight!).. This allows you to do things like share a common membership, role management and profiles across a number of presentation tears. It also enables very easy roaming user state... Check out how easy it is to use the profile store... here I am using Windows Authentication, but of course you can use forms or your own system just as well. In fact any system can be rolled into the ASP.NET Auth system (there is a whole book on the subject ). Part 1: Create the web site. 1. In Orcas Beta1, Create a new ASP.NET Web Application 2. Fill in the profile section of the web.config...
Nikhil Kothari, an architect on the ASP.NET team, has been working in his spare time on a project called Script#. Essentially this allows an Ajax programmer to code in a strongly typed language like C# and compile their code into JavaScript. His original article can be accessed here . Recently he added ASP.NET AJAX support to Script# - you can read about this here . Hope you have fun with Script#! Thanks, -- Bash Read More...
A while back I talked about Bringing new life to your VB6 apps with the Interop Forms Toolkit and now they have shipped Version 2.0... If you have a VB6 app and you are looking to take incremental advantage of .NET, you should check this out. Here is a cool example project where they leverage the WinForms MenuStrip and ToolStrip in a VB6 application! Very cool.. I can't wait to see what you do with it! Read More...
In part 1 , I showed how to subscribe to events exposed by JavaScript classes built on Microsoft Ajax. In this post, I'll show how to expose new events from your own classes. Theoretically, the only things you have to do to expose an event are to implement "add_myEvent" and "remove_myEvent" methods that add or remove handlers, and to call all subscribers when relevant. In practice, managing the list of handlers for each event is really boilerplate code that you would have to reproduce for every event. This is why the Sys.Component base class exposes an events property that is an instance of Sys.EventHandlerList , which makes the event handler management a lot easier, and also has a few performance advantages. This is not a new pattern, System...
One of the things I'm going to try and start doing is a weekly blog post of useful/interesting links on .NET related topics that I've found on the web. Below is this week's version: ASP.NET Downloading a File using ASP.NET with the "Save As" Dialog : Rick Strahl has a nice post on how to dynamically download a file to a browser with ASP.NET and force the browser to automatically prompt them to save it using the "Save As" dialog. Storing Binary Files Directly in the Database using ASP.NET 2.0 : Scott Mitchell has a good article that shows how to upload and store images within a SQL database, and then serve them out dynamically from within a web application (very useful for photo albums). You could combine this article with Rick's above to enable...
A new build of Script# is now available, complete with full support for creating Microsoft ASP.NET AJAX components, controls and behaviors... this post includes a video demonstration of building a script watermark behavior, and gives me a chance to reflect on this project exactly a year since its initial release... Read More...
Over the last few months I wrote a series of blog posts that covered some of the new language features that are coming with the Visual Studio and .NET Framework "Orcas" release. Here are pointers to the posts in my series: Automatic Properties, Object Initializer and Collection Initializers Extension Methods Lambda Expressions Query Syntax Anonymous Types The above language features help make querying data a first class programming concept. We call this overall querying programming model "LINQ" - which stands for .NET Language Integrated Query . Developers can use LINQ with any data source. They can express efficient query behavior in their programming language of choice, optionally transform/shape data query results into whatever format they...
I am a HUGE believer in building consensus , but The Wisdom of Crowds is starting to make be rethink the approach a bit. I just finished reading, ok listening to the audio version on my bike ride into work, James Surowiecki's latest book. His point is that groups of people make good decisions on matters of general knowledge when all of the following conditions are meet: 1. There is a diversity of opinion 2. People are not overtly influenced by others in the group 3. Some "fair" aggregation system is at work Surowiecki argues that these elements allow you to tap into the collect smarts of the group while canceling out their errors.. Doing things like spending tons of time consensus building often has the result of creating less diversity in opinion...
One of the reasons I love working in the developer platform space is that I get to see the amazing soutions poeple build with our product. I am very impressed with what the Popfly team has been able to create on top of Silverlight 1.1 Alpha in just a few weeks... Not only is it a cool app that is adictive to play with, but it shows what is possible with Silverlight 1.1.. Between it and TopBanna I think we are starting to get a peak at what is to come on the web. Here is what I came up with with litterally 5 mins of playing around with it.. Notice how it reuses a block somoene else puplished, cool and viral! http://www.popfly.ms/users/BradA/BlogTitleRansomNote.small Check on JohnMont's post for some great info and links. Read More...
More Posts
« Previous page -
Next page »