Nascon Developments

tisdag 29 maj 2018

Dynamic serverside validation of form data

›
public class FormValidationHelper { public TValidationResult DoDynamicValidation (TModel model, string methodBody) { var re...
tisdag 10 juni 2014

Enum with DescriptionAttribute

›
public static class EnumExtensions { public static T GetAttribute (this Enum enumeration) where T : Attribute { var type = ...
torsdag 24 april 2014

Small settings factory class

›
Public Class WidgetSettingsFactory Public Function GetItemSettings(Of T As ItemSettings)(ByVal externalName As String, ByVal doc As Documen...
onsdag 19 september 2012

Print Properties of a Class

›
Private Sub PrintMemberClassInfo(ByVal memberClass As MemberClass) For Each propertyInfoItem As PropertyInfo In memberClass.GetType().G...
måndag 9 juli 2012

PowerShell - Iterate folders and move items to parent

›
Get-ChildItem -Recurse | Where {$_.psIsContainer -eq $true} | Select-Object FullName | ForEach-Object { Set-Location $_.FullName; Mo...
tisdag 19 juni 2012

VBScript - How to sort an array of objects

›
Function SortItemsByPubDate(items, intSort) Dim result : Set result = Server.CreateObject("Scripting.Dictionary") Dim objD...
torsdag 3 maj 2012

JavaScript Scrapbook addition

›
A repeater with a nested GridView. All GridViews have their own UpdateProgress controls. This hides all UpdateProgress divs but the one for...
›
Startsida
Visa webbversion
Använder Blogger.