Joined December 2011
·

Diego Dias

Arquiteto de Software at E-Guru
·
São Paulo, Brazil
·
·
·

Why you don't create your own collection with this logic?

Posted to Multiple submit buttons over 1 year ago

In this case, my view is not globalized, but I can use a hidden field, querystring or form parameters, use only name of your submit button and more.

Your example is an alternative to my, as mine is an alternative to your. I don't see no problem with extension methods to system.objects

When you are reading a DataReader for example, everything is object and cannot possibly make implicit conversion to nullable. So, this extension method can help you and your code still looks better.
var id = reader[columnIndex].ToNullable<int>();

Achievements
178 Karma
9,096 Total ProTip Views