.NET Sample code from Developer Fusion https://www.developerfusion.com/t/.net/code/sort/popularity/ .NET Sample code from Developer Fusion http://www.rssboard.org/rss-specification en-GB Thu, 28 Aug 2008 11:22:00 GMT How to convert a string to a date Finding out how to convert one type to another in .NET is tricky. Here is the answer to converting a string to a DateTime type. http://www.developerfusion.com/code/3244/how-to-convert-a-string-to-a-date/ http://www.developerfusion.com/code/3244/how-to-convert-a-string-to-a-date/ Sat, 11 Jan 2003 09:53:00 GMT Edward Tanguay How to get the current SessionID Demonstrates how to retrieve the current SessionID for storing session data in a database http://www.developerfusion.com/code/2645/how-to-get-the-current-sessionid/ http://www.developerfusion.com/code/2645/how-to-get-the-current-sessionid/ Sat, 13 Jul 2002 06:35:00 GMT Edward Tanguay Making a .NET app run on Vista with Administrator priviledges If you're targeting Windows Vista and your application requires administrator priviledges (such as accessing the program files directory), then it will fail unless you include a manifest so Windows knows. Here's how. http://www.developerfusion.com/code/7987/making-a-net-app-run-on-vista-with-administrator-priviledges/ http://www.developerfusion.com/code/7987/making-a-net-app-run-on-vista-with-administrator-priviledges/ Wed, 06 Aug 2008 09:35:00 GMT James Crowley Asynchronous HttpWebRequest Demonstrates how to build a much more responsive and user-friendly application by using asynchronous HttpWebRequests. http://www.developerfusion.com/code/4654/asynchronous-httpwebrequest/ http://www.developerfusion.com/code/4654/asynchronous-httpwebrequest/ Fri, 14 Jan 2005 04:08:00 GMT Steven Cohn Adding controls to PlaceHolders dynamically A simple example demonstrating how to dynamically add controls to a PlaceHolder control. http://www.developerfusion.com/code/3826/adding-controls-to-placeholders-dynamically/ http://www.developerfusion.com/code/3826/adding-controls-to-placeholders-dynamically/ Mon, 07 Jul 2003 04:29:00 GMT Edward Tanguay Merge an .exe and a .dll into one .exe How to merge an .exe and a .dll into one .exe using ilmerge in VS.NET http://www.developerfusion.com/code/4504/merge-an-exe-and-a-dll-into-one-exe/ http://www.developerfusion.com/code/4504/merge-an-exe-and-a-dll-into-one-exe/ Tue, 02 Mar 2004 04:47:00 GMT Edward Tanguay Programatically Load User Controls How to programatically load user-controls from code behind pages and then access their properties using reflection. http://www.developerfusion.com/code/4673/programatically-load-user-controls/ http://www.developerfusion.com/code/4673/programatically-load-user-controls/ Sun, 20 Feb 2005 11:03:00 GMT Dave Wanta How to check to make sure a URL is valid A neat bit of code that checks if a domain is valid and actually exists. http://www.developerfusion.com/code/4267/how-to-check-to-make-sure-a-url-is-valid/ http://www.developerfusion.com/code/4267/how-to-check-to-make-sure-a-url-is-valid/ Tue, 06 Jan 2004 06:48:00 GMT Edward Tanguay Generate PDFs using C# and the free iTextSharp library Learn how to use the free iTextSharp library to load a PDF form, populate some dynamic fields, and then save out a flat PDF file. http://www.developerfusion.com/code/6623/dynamically-generating-pdfs-in-net/ http://www.developerfusion.com/code/6623/dynamically-generating-pdfs-in-net/ Sun, 15 Apr 2007 20:36:00 GMT James Crowley User-Friendly Validation using ErrorProvider Data entry is a very important part of a lot of applications. It is important to validate data as it is entered without disturbing the user. Enter the ErrorProvider component. http://www.developerfusion.com/code/4445/userfriendly-validation-using-errorprovider/ http://www.developerfusion.com/code/4445/userfriendly-validation-using-errorprovider/ Sun, 15 Feb 2004 09:33:00 GMT Tim Dawson Customize XML Serialization using IXmlSerializable Learn how to implement the IXmlSerializable in order to customize serialization of your objects - for instance, serializing a NameValueCollection. http://www.developerfusion.com/code/4639/customize-xml-serialization-using-ixmlserializable/ http://www.developerfusion.com/code/4639/customize-xml-serialization-using-ixmlserializable/ Fri, 17 Dec 2004 16:14:00 GMT James Crowley Deep clone an object in .NET A simple code snippet that deep-copies an object by serializing and de-serializing using the BinaryFormatter http://www.developerfusion.com/code/8063/deep-clone-an-object-in-net/ http://www.developerfusion.com/code/8063/deep-clone-an-object-in-net/ Thu, 28 Aug 2008 11:22:00 GMT James Crowley Read MP3 Tag Information (ID3v1 and ID3v2) This sample source code demonstrates how to read IP3v1 and IP3v2 tag information from MP3's, along with MPEG headers too. http://www.developerfusion.com/code/4684/read-mp3-tag-information-id3v1-and-id3v2/ http://www.developerfusion.com/code/4684/read-mp3-tag-information-id3v1-and-id3v2/ Thu, 31 Mar 2005 18:50:00 GMT Erin Jones Create Controls At Runtime Shows how to create controls at runtime and set their properties http://www.developerfusion.com/code/4393/create-controls-at-runtime/ http://www.developerfusion.com/code/4393/create-controls-at-runtime/ Wed, 04 Feb 2004 16:30:00 GMT Colin Harman MACITP Placing results from DataReader into an Array Since a connection cannot be used until a DataReader has been closed, it is quite often necessary to read the results of a DataReader into an array, then close the DataReader, then you can process the data in the array while you use the connection for something else. This shows you how. http://www.developerfusion.com/code/4390/placing-results-from-datareader-into-an-array/ http://www.developerfusion.com/code/4390/placing-results-from-datareader-into-an-array/ Wed, 04 Feb 2004 11:32:00 GMT Edward Tanguay Start a Process as a Different User This tutorial will help you learn how to start a process as another user e.g. the Administrator account. http://www.developerfusion.com/code/5679/start-a-process-as-a-different-user/ http://www.developerfusion.com/code/5679/start-a-process-as-a-different-user/ Tue, 09 May 2006 22:12:00 GMT Peter Rekdal Sunde Validating an Integer How to validate an Integer the fast/efficient way in C# using Double.TryParse() http://www.developerfusion.com/code/4650/validating-an-integer/ http://www.developerfusion.com/code/4650/validating-an-integer/ Sun, 09 Jan 2005 14:40:00 GMT Simon Soanes Generate an Image of a Web Page Demonstrates how to fetch images and thumbnails of web pages using a hidden web browser control. http://www.developerfusion.com/code/4712/generate-an-image-of-a-web-page/ http://www.developerfusion.com/code/4712/generate-an-image-of-a-web-page/ Fri, 22 Jul 2005 15:50:00 GMT Alan Dean Is an Internet Connection Available? Check if an internet connection is available using this simple code snippet. http://www.developerfusion.com/code/3903/is-an-internet-connection-available/ http://www.developerfusion.com/code/3903/is-an-internet-connection-available/ Fri, 01 Aug 2003 06:55:00 GMT Karl Moore FTP client library for C# An FTP client library for C#, including asynchronous operation http://www.developerfusion.com/code/4340/ftp-client-library-for-c/ http://www.developerfusion.com/code/4340/ftp-client-library-for-c/ Mon, 26 Jan 2004 04:25:00 GMT Dan Glass