Universe Guide Blog Archive 3
How to round a number in .NET / 9th January 2022 8:45 PM
How to round a number up or down using .NET. By default, a 5 will be rounded down but it can be forced to be rounded up without complications. Read More...
How to get the Location of the "My Documents" folder using C# / 9th October 2021 7:56 PM
The location of the "My Documents" folder can change between versions of Windows, but there is a function that will tell you the location for the current version of windows. Read More...
How to use Interfaces in C# / 29th September 2021 2:23 PM
Example on how to use interfaces in C#, both simple and multiple interfaces and how to best utilize them in a generic list collection. Read More...
How to get a Connection String from Web.Config or App.Config in C# / 29th September 2021 12:08 PM
Getting a connection string from a .config file allows a website/program to be easily installed with the maximum of ease. When using .config, you only need to change the file and not the code. Read More...
Difference between == and === in Javascript / 29th September 2021 11:06 AM
When making a javascript comparison, you might have seen double equals (==) and triple equals (===) but didn't understand what they meant. This article will explain the difference between the two. Read More...
How to upload a file using ASP.NET MVC C# / 29th September 2021 10:17 AM
Example code of how to use the fileupload html tag to upload and save a file to the server. Read More...
How to check file directory exists, remove it if does else create it using C# (.NET) / 1st September 2021 9:15 PM
Creating, checking the existence of and removing folders are provided in the IO library so that you don't have to use a Windows API to do the operation. Find out how to use the relevant command to do your intended procedure. Read More...
Temporary Tables in SQL Server / 29th August 2021 6:18 PM
Temporary tables are a great way of temporarily storing records so you can manipulate them and then present to the user. There are two types of temporary tables, the traditional table and the table variable. Read More...
Alternative method to using Cursors to view records in SQL Server / 29th August 2021 5:46 PM
Cursors have their uses in databases such as Oracle and SQL Server, but they are inefficient. There is a replacement method for using cursors utilizing temporary tables. Read More...
How to download a file from a server using C# (.NET) / 29th August 2021 4:35 PM
Downloading a file from a server using C# is easier than it was before due to the System.NET library. This document shows how you would write code to download robots.txt from your server. Read More...