Stories recently tagged with 'Attributes'

Saving server control properties to ViewState with custom attributes(helephant.com)

submitted by HelephantHelephant(90) 3 years, 5 months ago

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. read more...

add a comment |category: |Views: 74

tags: another

Extension Methods + Attributes = A Whole New World!(blogs.microsoft.co.il)

submitted by shayfriedmanshayfriedman(1411) 3 years, 7 months ago

A post about combining attributes and extension methods in order to extend current code. read more...

1 comment |category: |Views: 566

tags: another

Frictionless data persistence in Silverlight 2(dimebrain.com)

submitted by dcrennadcrenna(1355) 3 years, 7 months ago

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 code around your state objects. read more...

add a comment |category: |Views: 38

tags: another

ASP.NET MVC Controller Action Precondition Filter (blog.troyd.net)

submitted by powerrushpowerrush(3873) 3 years, 8 months ago

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.: a valid primary key). These, I consider "preconditions". read more...

1 comment |category: |Views: 68

tags: another

Data Binding an Enum with Descriptions(xml.indelv.com)

submitted by j.montyj.monty(1868) 3 years, 10 months ago

Finally a SIMPLE, straight-forward, well thought out way to do DataBinding with an Enum. read more...

add a comment |category: |Views: 32

tags: another

Have Fun Again With Custom Attributes (1)(codeproject.com)

submitted by gfraiteurgfraiteur(988) 4 years, 4 months ago

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 fun into serious advantages! read more...

add a comment |category: |Views: 9

tags: another

Using JQuery to Make Asp.Net Play Nice with Asp.Net(blog.spontaneouspublicity.com)

submitted by HoolieManHoolieMan(1715) 4 years, 5 months ago

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. read more...

1 comment |category: |Views: 8

tags: another

Beware: Attributes.Add Calls HtmlAttributeEncode(dennylove.blogspot.com)

submitted by superghostsuperghost(2260) 5 years, 3 months ago

Had some trouble today with *.Attributes.Add and using an ampersand &. The problem is Attributes.Add and here's what I found... read more...

add a comment |category: |Views: 91

tags: another