TypeInitializationException when using [IntegerValidator] with a [ConfigurationProperty]

by Dominic Zukiewicz 26. February 2010 15:14
I was writing my own custom configuration class to reduce the amount of <appSettings> in my code, but also to make sure the values were type safe. I wrote a simple test application to try this out. 1: class MyConfigurationTestConfiguration : System.Configuration.ConfigurationSection 2: { 3: private static MyConfigurationTestConfiguration settings = ConfigurationManager.GetSection("MyConfigurationSettingsConfiguration") as MyConfigurationTestConfiguration; 4:  5: public static MyConfigurationTestConfigurat... [More]

Tags: , ,

C#

Making a simple Back button using JavaScript in ASP.NET

by Dominic Zukiewicz 26. February 2010 10:29
Nothing to complex this time, just for reference really. Sometimes you want a simple button to just go back to the previous page. All you need is: <asp:Button runat="server" Text="<%$Resources:MyResources,Back%>" OnClientClick="javascript:history.back(); return false;"/> The reason I'm using an ASP.NET Button is purely for the Localization functionality, so you can use with with HTML controls as well

Tags: ,

ASP.NET | JavaScript

Powered by BlogEngine.NET 1.5.0.7
Theme by Interakting

Interakting

A full service digital agency offering online strategy, design and usability, systems integration and online marketing services that deliver real business benefits and ensure your online objectives are met.

Calendar

<<  February 2010  >>
MoTuWeThFrSaSu
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567

View posts in large calendar