By tag: Attributes
0
kicks
Saving server control properties to ViewState with custom attributes
Here's a little tip for using .NET custom attributes to make a server control's ViewState property into a single line of code. Save yourself some boring repetitive coding and make the language do the work instead.
0
kicks
Extension Methods + Attributes = A Whole New World!
A post about combining attributes and extension methods in order to extend current code.
0
kicks
Frictionless data persistence in Silverlight 2
This article will show you how to work with plain objects in Silverlight code, and use attributes to have those values automatically persisted in IsolatedStorage, or a compressed version of IsolatedStorage. You can also use this approach to define your own targets, all without writing any plumbing c...
0
kicks
ASP.NET MVC Controller Action Precondition Filter
Here is code that will allow you to decorate your MVC Actions with attributes that will define your needed "preconditions".
I often find the need to check for the existence of a parameter passed to a web page, such as an ID, and also often need to check if the ID is valid as well (e.g.:...
0
kicks
Data Binding an Enum with Descriptions
Finally a SIMPLE, straight-forward, well thought out way to do DataBinding with an Enum.
0
kicks
Have Fun Again With Custom Attributes (1)
If you think you know everything there is to know about custom attributes, read this article. I will show how PostSharp will let you to take your custom attributes to the next level. Learn how to encapsulate logging, performance, instrumentation, or field validation into custom attributes. And turn ...
0
kicks
Using JQuery to Make Asp.Net Play Nice with Asp.Net
I have found that developing an Asp.Net application that makes heavy use of javascript is very difficult. One of the major pain points is dealing with the horrendously long ids that Asp.Net server controls generates. Here is how to overcome the difficulties with these Uber-long ids.
0
kicks
Beware: Attributes.Add Calls HtmlAttributeEncode
Had some trouble today with *.Attributes.Add and using an ampersand &. The problem is Attributes.Add and here's what I found...