Logging con NLog e SQLite

Questo articolo spiega come ottenere una soluzione di logging portabile ed elegante grazie all’uso di NLog e SQLite, su piattaforma .NET e con poche configurazioni. NLog NLog è una libreria di logging leggera e gratuita che supporta l’ecosistema .NET (Silverlight, Windows Phone, ecc.). Costituisce un’opzione eccellente per un ampio range di scenari: dalle semplici utilities quotidiane a servizi critici di produzione. Consente di avere multipli target, siano essi file, database, console, rete o email. ...

May 6, 2014 · 2 min · Andrea Azzola

Logging with NLog and SQLite

This article explains how to achieve a portable and elegant logging solution with NLog and SQLite on the .NET platform with a few configurations. NLog NLog is a free, lightweight logging library for .NET. It supports many targets (files, databases, console, network, email, and more). nlog-project.org Install (NuGet Package Manager Console) PM> Install-Package NLog SQLite SQLite is a simple embedded database engine. No separate server daemon is required; the database is a single file (e.g., .db3). ...

May 6, 2014 · 2 min · Andrea Azzola

Using an ajax:ModalPopup Without a TargetControl

The ModalPopup extender usually requires a control for firing up, set through the TargetControlID property. However, sometimes you may want to show and hide the panel programmatically. All you need is a fake activator, like the following: The Extender <ajax:ModalPopupExtender ID="mpeInfo" runat="server" TargetControlID="divFakeActivator" PopupControlID="pnlInfo" CancelControlID="bttInfoClose" /> The Panel <asp:Panel ID="pnlInfo" runat="server"> Hello World!!! </asp:Panel> The C# code // Show and hide programmatically mpeInfo.Show(); mpeInfo.Hide(); Note (2025): This post reflects an older ASP.NET AJAX pattern. In modern frameworks you would likely manage modal dialogs through client‑side libraries (e.g., Bootstrap, React, Blazor components). ...

September 25, 2007 · 1 min · Andrea Azzola