ASP.NET Sample code from Developer Fusion https://www.developerfusion.com/t/asp.net/code/sort/popularity/ ASP.NET Sample code from Developer Fusion http://www.rssboard.org/rss-specification en-GB Tue, 10 Feb 2009 11:24:00 GMT 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 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 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 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 Encrypting Web.config sections in ASP.NET 2.0 Learn how to encrypt any section of your Web.config file on-the-fly and programatically; plain-text connection strings in your config file are no more! http://www.developerfusion.com/code/5263/encrypting-webconfig-sections-in-aspnet-20/ http://www.developerfusion.com/code/5263/encrypting-webconfig-sections-in-aspnet-20/ Sat, 21 Jan 2006 22:25:00 GMT Xavier Larrea How to write to an XML file Writing to XML files is quite easy in ASP.NET as there are so many objects prepared for you -- you just need the syntax on how to use them. This code shows you how to write a simple member XML file. http://www.developerfusion.com/code/2646/how-to-write-to-an-xml-file/ http://www.developerfusion.com/code/2646/how-to-write-to-an-xml-file/ Sat, 13 Jul 2002 06:38:00 GMT Edward Tanguay Dynamic thumbnail images from ASP.NET This sample code is an IHttpHandler implementation that reads a JPG from the filesystem and dynamically generates a thumbnail sized version of the image and emits that to the response stream. What I like about this approach is that you don't need to create a file on the filesystem for the thumbnail as it's all done in memory. http://www.developerfusion.com/code/4688/dynamic-thumbnail-images-from-aspnet/ http://www.developerfusion.com/code/4688/dynamic-thumbnail-images-from-aspnet/ Mon, 11 Apr 2005 16:15:00 GMT Brock Allen How to access a MySQL database with .NET Demonstrates how to connect to a MySQL database with C#. http://www.developerfusion.com/code/4596/how-to-access-a-mysql-database-with-net/ http://www.developerfusion.com/code/4596/how-to-access-a-mysql-database-with-net/ Thu, 01 Apr 2004 14:47:00 GMT Edward Tanguay Binding a Control to an Enum Ever had an Enum (with a set of names and values) that you wanted to bind to a control like a DropDownList? Here's how. http://www.developerfusion.com/code/4713/binding-a-control-to-an-enum/ http://www.developerfusion.com/code/4713/binding-a-control-to-an-enum/ Wed, 27 Jul 2005 15:14:00 GMT James Crowley Binding Multiple Fields to ASP.NET ListControl classes Out of the box, the ASP.NET list controls (CheckBoxList, RadioButtonList, DropDownList) only support data binding on a single field. Learn how to work around this to bind to as many fields as you need. http://www.developerfusion.com/code/9723/binding-multiple-fields-to-aspnet-listcontrol-classes/ http://www.developerfusion.com/code/9723/binding-multiple-fields-to-aspnet-listcontrol-classes/ Tue, 10 Feb 2009 11:24:00 GMT Neil Dodson Embed text in Image using ASP.NET Demonstrates how to dynamically embed a text caption embedded into an image. http://www.developerfusion.com/code/4648/embed-text-in-image-using-aspnet/ http://www.developerfusion.com/code/4648/embed-text-in-image-using-aspnet/ Fri, 07 Jan 2005 08:41:00 GMT Julian Roberts Display SQL Server table data in a browser Just supply your database connection string and this code will give you a radio button list of all your SQL Server tables and will show their fields. http://www.developerfusion.com/code/3243/display-sql-server-table-data-in-a-browser/ http://www.developerfusion.com/code/3243/display-sql-server-table-data-in-a-browser/ Sat, 11 Jan 2003 09:51:00 GMT Edward Tanguay Cross page postbacks in ASP.NET 2.0 ASP.NET 2.0 introduces the ability to have an ASPX page postback to a different ASPX page with cross page postbacks. This was done all the time in ASP but wasn’t supported in ASP.NET 1.x. Here we show you how to use this new feature. http://www.developerfusion.com/code/4687/cross-page-postbacks-in-aspnet-20/ http://www.developerfusion.com/code/4687/cross-page-postbacks-in-aspnet-20/ Mon, 11 Apr 2005 16:06:00 GMT Brock Allen How to delete records with SqlCommand This code shows you how to delete records with an SQL statement and get the number of records deleted returned back as an integer. http://www.developerfusion.com/code/4391/how-to-delete-records-with-sqlcommand/ http://www.developerfusion.com/code/4391/how-to-delete-records-with-sqlcommand/ Wed, 04 Feb 2004 11:36:00 GMT Edward Tanguay Url Rewriting with Regex for ASP.NET 2.0 A new feature in ASP.NET 2.0 is it's built-in url rewriting support. When i looked into this new feature I found that it lacked regular expressions support, which is really the point of an Url Mapper. So, this code demonstrates how to create a Url Rewriting Module with Regex support in ASP.NET. http://www.developerfusion.com/code/5302/url-rewriting-with-regex-for-aspnet-20/ http://www.developerfusion.com/code/5302/url-rewriting-with-regex-for-aspnet-20/ Sun, 29 Jan 2006 11:16:00 GMT Xavier Larrea How to get an array of all files in a directory This simple code will give you an array containing all files in a directory. http://www.developerfusion.com/code/3825/how-to-get-an-array-of-all-files-in-a-directory/ http://www.developerfusion.com/code/3825/how-to-get-an-array-of-all-files-in-a-directory/ Mon, 07 Jul 2003 04:25:00 GMT Edward Tanguay Uploading Files Using ASP.NET No need of third party components to upload your files. It is so easy to upload files in ASP.NET using just 3 lines of code. http://www.developerfusion.com/code/5449/uploading-files-using-aspnet/ http://www.developerfusion.com/code/5449/uploading-files-using-aspnet/ Mon, 27 Feb 2006 17:30:00 GMT Man from Mars Debug ASP.NET pages using Tracing Demonstrates a useful debugging technique taking advantage of traces in ASP.NET. http://www.developerfusion.com/code/4649/debug-aspnet-pages-using-tracing/ http://www.developerfusion.com/code/4649/debug-aspnet-pages-using-tracing/ Fri, 07 Jan 2005 08:48:00 GMT Julian Roberts Building an 'AJAX' ProgressBar in Atlas Learn how to write a basic, client-side Atlas progress bar, and download the source code. http://www.developerfusion.com/code/5340/building-an-ajax-progressbar-in-atlas/ http://www.developerfusion.com/code/5340/building-an-ajax-progressbar-in-atlas/ Thu, 02 Feb 2006 15:45:00 GMT Wilco Bauwer How to simulate a status bar in a Web application If you have a process that takes over 20 seconds or so on a Web application, you may want to let the user know the status of the process. Edward shows you how. http://www.developerfusion.com/code/4314/how-to-simulate-a-status-bar-in-a-web-application/ http://www.developerfusion.com/code/4314/how-to-simulate-a-status-bar-in-a-web-application/ Sun, 18 Jan 2004 12:33:00 GMT Edward Tanguay