I use attached behavious in my WPF applications, which allows a lot of code reuse and I would like to know if there is a trick to use something like behaviours in ASP .NET applications.