This application should not be used as a replacement for Microsoft’s W32Tm NTP Sync functionality. This application however will help when you do not have that service working. InternetTime Namespace (majority of the code) credit goes to Valer Bocan viewable at http://dotnet-snippets.com/snippet/simple-network-time-ntp-protocol-client/571 NTP Namespace is my addition to Valer’s code,…
Category: CSharp
SQL Connection Test
For more connection string assistance visit: http://www.connectionstrings.com/
Read Online Content
With this example I only want an IP address so it’s rather clean and easy but you can essentially put any public webpage in place of “http://kittell.net/onlyip.php”
Unix Time Conversion
When integrating various systems you sometimes need to convert DateTime values to an Integer, the code samples below will be helpful
Get City/State/Country From IP
I have a lot of possible options on this page, as I find time I’ll clean this page up a bit to make it more user friendly. C# Free, Fast JavaScript Free, Fast Microsoft SQL Using GeoPlugin.net XML Option [raw] All Values geoPlugin: geoplugin_request: 208.67.222.222geoplugin_status: 200geoplugin_credit: Some of the returned…
Restrict Access to Internal IP
Many times we have sites that are public but have pages that should only be viewed by internal users. Ideally the settings would be configured on the server level in IIS but if not possible for some reason this may help. One key thing to note is this code will…
Calculate Age
Source: http://stackoverflow.com/questions/9/how-do-i-calculate-someones-age-in-c
You must be logged in to post a comment.