See all next year!
2009Archive
“Finally!!!”, you say…I hear you man! With ASP.NET 4.0, we can enable/disable session state programmatically (like in C# code 🙂 ,,). The new version of the framework adds a new method (SetSessionStateBehavior) to the HttpContext class. You’re supposed to pass it a value from the SessionStatebehavior to influence the use of session state. Currently, you […]
Christmas 2009 in Funchal
Yesterday I’ve took some pictures of Funchal by night. This is really the best time of year to visit this city…
Ensuring that IIS 7 will handle extensionless URLs
As you probably know, I’ve been updating my ASP.NET book to 4.0. It has been more work that initially expected, but I can also say that I’ve been having some fun. One of the things I’ve had to investigate was routing. This is one of those cool additions that will really help improve SEO in […]
The “Cannot open user default database…” error
2011-01-12 15:18:19
The new ViewState model
Everybody knows that using view state means that you’ll go to hell when you die….nonetheless, many keeps using it, even after having been warned about it (probably because they find heaven to dull??? who knows 🙂 ,,)…to be honest, the default opt-out model we had until now didn’t really helped. The good news is that […]
I’d like to apologize for the lack of posts lately…no, I haven’t given up in my Silverlight series, but I’ve been busy updating my existing ASP.NET book to the 4.0 version. It seems like I will have a lot of work (much more than I had anticipated, but the truth is that I really enjoy […]
Protected: Getting 503 errors on IIS 7 with custom application pool (Integrated Mode)?
There is no excerpt because this is a protected post.
Changing the action attribute of an HtmlForm
In these last days I’ve went back to ASP.NET world (server side) since I’m thinking in rewriting my ASP.NET book (which was written way back when ASP.NET 2.0 was released and which got a slight updated for .NET 3.5). One of the things I’ve noticed is that now we can change the action attribute of […]
Protected: Reverting to Office 32 bits
There is no excerpt because this is a protected post.
Asking feedback for ASP.NET book
This is a post to my Portuguese readers (ie, for those guys and gals that have read my Portuguese books). I’m still preparing material for a possible ASP.NET 4.0 book and I would really appreciate some feedback on the previous editions (that is, if you read the book). What did you like? What didn’t you […]
Some observations on MS AJAX and JQuery integration
2011-01-12 15:09:55
MS AJAX beta – new plugins
The MS AJAX beta release adds some new plugins to the previous ones. Besides the existing setCommand and bind, we now have access to the following plugins: addHander: you can use this plugin to set up a handler for one event fired by one or several DOM elements; removeHandler: as you can probably guess from […]
Markup extensions
Markup extensions allows you to extend the expressibility of XAML. You use markup extensions to escape the general treatment that attribute values get (by default, we’ve seen that they are treated as strings or that a type converter is used to convert them to the adequate type). Markup extension expressions are always delimited by the […]
Book review: The back of the napkin
This was one of the books I’ve read during my summer vacations. Dan Roam tries to show us how we can use visual thinking to solve problems. I found it interesting and enlightening, though I must confess that I still haven’t tested all of his ideas in my day-to-day work. Overall, I’m giving it 7.5/10.
MS AJAX Lib beta is out
You can get it from here. I’m curious to see if it contains new features…
Reactive Extensions for .NET
I’ve just noticed this post from the Parallel team. Now, this will be useful because it seems like it solves lots of the bugs introduced in the latest public CTP of the Parallel lib :,,)
XAML: what about events?
2011-01-12 15:09:18
Protected: How to build types that can be consumed from XAML
There is no excerpt because this is a protected post.
Associating XAML namespaces to CLR namespaces
2011-01-12 15:09:08
South Africa 2010: here we go, here we go!
A friendly advice to the Bosnian coach: next time, play more and talk less!
XAML languages features
As I’ve said before, Silverlight supports only a subset of the existing XAML keywords you can use in WPF. Here’s the list of keywords you can use in your Silverlight: x:Class: you can apply this attribute to the root element of the XAML file (or object tree) that is going to be “compiled”. When you […]
XAML and collections
We’ve already talked about several features related to XAML. In this post, we’ll keep going and we’ll see how to specify collections in XAML. There are two basic types of collections you can use in XAML: lists and dictionaries. Before going on, it’s important to understand that you’re not really creating new collections in XAML; […]
Type converter on Silverlight
Today we’ll talk a little bit about the role played by type converters in “transforming” XAML into C# objects. Here’s a quick example: <Button xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="bt" Click="bt_Click" Width="100" Content="Say Hi" Background="Red" /> If you look carefully, you’ll see that Background expects a Brush object. All XAML attribute are strings by default. In other words, […]
Plano Inclinado: Portuguese talk show which looks at how things are in the real “Portugal”
If you’ve missed it, then don’t forget to check it online. It’s really a shame that most Portuguese people won’t ever watch this program (which is probably one of the first programs with real quality in Portugal) because they’re watching soap operas or some other low quality programs…
XAML: using content properties
In the previous post, we’ve seen that we can use one of two approaches for setting the value of a property: we can use the property element or the attribute syntax (and, as we’ve seen in the previous post, you can’t use them both interchangeably). In this post, we’ll keep going and we’ll see how […]
XAML and property elements
In the previous post, we’ve started looking at same basic XAML. At the time, we’ve defined a simple button by using the following syntax: <Button xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="bt" Content="Say hi" Click="bt_Click" /> In the previous snippet, we’re setting the Content property and the Click event. Btw, and in case you’re wondering, events are set up […]
Introducing XAML
You can’t really do it any other way: we must understand XAML before going on (at least, its basic features). In this post, we’ll start looking at XAML and at how we can use it to define the UI of our Silverlight user controls. So, the big question: what is XAML? To me, XAML (which, […]