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 =…
All technologies, only pure source code
string myHost = System.Net.Dns.GetHostName(); // Show the hostname MessageBox.Show(myHost); // Get the IP from the host name string myIP =…
To add new records into a dataset, a new data row must be created and added to the DataRow collection…
While I was trying to connect to an Access Database from Visual Studio 2010 on my Windows 7 x64 server,…
I needed to read my SMTP email settings defined under system.net section in my web.config file. In order to use…
After some exhaustive research, I managed to find the best server settings for serving web fonts. There are a number…
Data is read from a database. It is generated in memory from input. DataTable is ideal for storing data from…
Here I show a simple class that receives the HTML string and then extracts all the links and their text…
I have written the following DateDiff() function in C#. VB.NET users already had it using the Micrsoft.VisualBasic.dll assembly. Now you…
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
// Specify a name for your top-level folder. string folderName = @”c:\Top-Level Folder”; // To create a…
In this article I will explain with an example how to use ASP.Net DropDownList control in the EditItemTemplate of ASP.Net…
With ASP.NET 2005 Microsoft introduced a pretty solid menu which is integrated with a configuration driven sitemap. The cool part…