Enrico
Windows Phone 8 Battery API
The Battery API makes a nice addition to the WP8 SDK. I can see in the near future that some…
Privacy policy generator for websites and apps
This post mainly answers the question how and why you should add a privacy policy to your Windows Phone app….
How to get the server IP Address?
string myHost = System.Net.Dns.GetHostName(); // Show the hostname MessageBox.Show(myHost); // Get the IP from the host name string myIP =…
Add Rows to a DataTable
To add new records into a dataset, a new data row must be created and added to the DataRow collection…
Getting error “The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machineâ€
While I was trying to connect to an Access Database from Visual Studio 2010 on my Windows 7 x64 server,…
Accessing SMTP Mail Settings defined in Web.Config File Programmatically
I needed to read my SMTP email settings defined under system.net section in my web.config file. In order to use…
Proper MIME types for Embedded @font-face Fonts
After some exhaustive research, I managed to find the best server settings for serving web fonts. There are a number…
Create DataTable
Data is read from a database. It is generated in memory from input. DataTable is ideal for storing data from…
Parse HTML page and capture contents
Here I show a simple class that receives the HTML string and then extracts all the links and their text…
DateDiff() function in C#
I have written the following DateDiff() function in C#. VB.NET users already had it using the Micrsoft.VisualBasic.dll assembly. Now you…
![Log record changes in SQL server in an audit table Visual Studio Entity Framework Core](https://i0.wp.com/puresourcecode.com/wp-content/uploads/2020/06/visual-studio-entity-framework-core.jpg?resize=600%2C400&ssl=1)
Log record changes in SQL server in an audit table
How to implement a log record changes in SQL server in an audit table and Entity Framework. This is the easy explanation and the code
Create a File or Folder
// Specify a name for your top-level folder. string folderName = @”c:\Top-Level Folder”; // To create a…
Populate DropDownList with Selected Value in EditItemTemplate of GridView in ASP.Net
In this article I will explain with an example how to use ASP.Net DropDownList control in the EditItemTemplate of ASP.Net…
ASP.NET Menu and SiteMap Security Trimming
With ASP.NET 2005 Microsoft introduced a pretty solid menu which is integrated with a configuration driven sitemap. The cool part…
Working With Share Link Task in Windows Phone 8
In this article we will learn about the Share Link Task. This task enables the user to share a link…
Every application needs identity & access control
Nearly every application deals with data and resources that need to be protected. Implementing secure authentication and authorization is therefore…
Five documentation apps for .NET developers
Documentation is a necessary evil for software developers. While C# and VB.NET have basic facilities for commenting code and embedding…
IIS 7.5 error: Handler “PageHandlerFactory-Integrated†has a bad module “ManagedPipelineHandler†in its module list
Today I installed Clean Windows Web Server 2008 R2 64-bit with IIS 7.5. To my surprise opening .NET 4.0 application…
Convert VB to C# or C# to VB
Same link to convert you code from C# to VB or viceversa. https://converter.telerik.com/ https://www.developerfusion.com/tools/convert/csharp-to-vb/ https://www.dotnetspider.com/convert/CSharp-To-Vb.aspx
![CSS not loading from App_Themes Microsoft dotnet .NET6](https://i0.wp.com/puresourcecode.com/wp-content/uploads/2022/01/microsoft-dotnet.jpg?resize=600%2C400&ssl=1)
CSS not loading from App_Themes
am having problem while loading the CSS file through App_Themes folder but with ASP.NET authentication doesn’t work.
Linqer (SQL to Linq converter)
Linqer is a SQL to LINQ conversion tool. It helps learning LINQ and convert existing SQL statements. Not every SQL…
C# string to Formatted HTML string
Is there a tool out there that can turn a C# string of unformatted HTML (no indentions, no new lines,…
Get Month name from month number
Simple method for give the name of month System.Globalization.DateTimeFormatInfo mfi = new System.Globalization.DateTimeFormatInfo();string strMonthName = mfi.GetMonthName(8).ToString();
Synchronization Essentials
So far, we’ve described how to start a task on a thread, configure a thread, and pass data in both…