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…
In this article we will learn about the Share Link Task. This task enables the user to share a link…
Nearly every application deals with data and resources that need to be protected. Implementing secure authentication and authorization is therefore…
Documentation is a necessary evil for software developers. While C# and VB.NET have basic facilities for commenting code and embedding…
Today I installed Clean Windows Web Server 2008 R2 64-bit with IIS 7.5. To my surprise opening .NET 4.0 application…
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
am having problem while loading the CSS file through App_Themes folder but with ASP.NET authentication doesn’t work.
Linqer is a SQL to LINQ conversion tool. It helps learning LINQ and convert existing SQL statements. Not every SQL…
Is there a tool out there that can turn a C# string of unformatted HTML (no indentions, no new lines,…
Simple method for give the name of month System.Globalization.DateTimeFormatInfo mfi = new System.Globalization.DateTimeFormatInfo();string strMonthName = mfi.GetMonthName(8).ToString();
So far, we’ve described how to start a task on a thread, configure a thread, and pass data in both…
So you’re a game developer? Then sprite sheets are one of your best friends. Sprite sheets make drawing faster and…
A significant and growing number of apps rely on external data from remote servers or other external APIs. At some…
Learning to use the most appropriate class or object for the task at hand is fundamental to writing efficient code….