https://www.developerfusion.com/t/asp.net/code/sort/popularity/ASP.NET Sample code from Developer Fusion2009-02-10T11:24:00.00Zhttp://www.developerfusion.com/code/2645/how-to-get-the-current-sessionid/How to get the current SessionID2002-07-13T06:35:00.00ZDemonstrates how to retrieve the current SessionID for storing session data in a databaseEdward Tanguayhttp://www.developerfusion.com/code/3826/adding-controls-to-placeholders-dynamically/Adding controls to PlaceHolders dynamically2003-07-07T04:29:00.00ZA simple example demonstrating how to dynamically add controls to a PlaceHolder control.Edward Tanguayhttp://www.developerfusion.com/code/4673/programatically-load-user-controls/Programatically Load User Controls2005-02-20T11:03:00.00ZHow to programatically load user-controls from code behind pages and then access their properties using reflection.Dave Wantahttp://www.developerfusion.com/code/6623/dynamically-generating-pdfs-in-net/Generate PDFs using C# and the free iTextSharp library2007-04-15T20:36:00.00ZLearn how to use the free iTextSharp library to load a PDF form, populate some dynamic fields, and then save out a flat PDF file.James Crowleyhttp://www.developerfusion.com/code/5263/encrypting-webconfig-sections-in-aspnet-20/Encrypting Web.config sections in ASP.NET 2.02006-01-21T22:25:00.00ZLearn 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!Xavier Larreahttp://www.developerfusion.com/code/2646/how-to-write-to-an-xml-file/How to write to an XML file2002-07-13T06:38:00.00ZWriting 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.Edward Tanguayhttp://www.developerfusion.com/code/4688/dynamic-thumbnail-images-from-aspnet/Dynamic thumbnail images from ASP.NET2005-04-11T16:15:00.00ZThis 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.Brock Allenhttp://www.developerfusion.com/code/4596/how-to-access-a-mysql-database-with-net/How to access a MySQL database with .NET2004-04-01T14:47:00.00ZDemonstrates how to connect to a MySQL database with C#.Edward Tanguayhttp://www.developerfusion.com/code/4713/binding-a-control-to-an-enum/Binding a Control to an Enum2005-07-27T15:14:00.00ZEver had an Enum (with a set of names and values) that you wanted to bind to a control like a DropDownList? Here's how.James Crowleyhttp://www.developerfusion.com/code/9723/binding-multiple-fields-to-aspnet-listcontrol-classes/Binding Multiple Fields to ASP.NET ListControl classes2009-02-10T11:24:00.00ZOut 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.Neil Dodsonhttp://www.developerfusion.com/code/4648/embed-text-in-image-using-aspnet/Embed text in Image using ASP.NET2005-01-07T08:41:00.00ZDemonstrates how to dynamically embed a text caption embedded into an image.Julian Robertshttp://www.developerfusion.com/code/3243/display-sql-server-table-data-in-a-browser/Display SQL Server table data in a browser2003-01-11T09:51:00.00ZJust 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.Edward Tanguayhttp://www.developerfusion.com/code/4687/cross-page-postbacks-in-aspnet-20/Cross page postbacks in ASP.NET 2.02005-04-11T16:06:00.00ZASP.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.Brock Allenhttp://www.developerfusion.com/code/4391/how-to-delete-records-with-sqlcommand/How to delete records with SqlCommand2004-02-04T11:36:00.00ZThis code shows you how to delete records with an SQL statement and get the number of records deleted returned back as an integer.Edward Tanguayhttp://www.developerfusion.com/code/5302/url-rewriting-with-regex-for-aspnet-20/Url Rewriting with Regex for ASP.NET 2.02006-01-29T11:16:00.00ZA 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.Xavier Larreahttp://www.developerfusion.com/code/3825/how-to-get-an-array-of-all-files-in-a-directory/How to get an array of all files in a directory2003-07-07T04:25:00.00ZThis simple code will give you an array containing all files in a directory.Edward Tanguayhttp://www.developerfusion.com/code/5449/uploading-files-using-aspnet/Uploading Files Using ASP.NET2006-02-27T17:30:00.00ZNo 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.Man from Marshttp://www.developerfusion.com/code/4649/debug-aspnet-pages-using-tracing/Debug ASP.NET pages using Tracing2005-01-07T08:48:00.00ZDemonstrates a useful debugging technique taking advantage of traces in ASP.NET.Julian Robertshttp://www.developerfusion.com/code/5340/building-an-ajax-progressbar-in-atlas/Building an 'AJAX' ProgressBar in Atlas2006-02-02T15:45:00.00ZLearn how to write a basic, client-side Atlas progress bar, and download the source code.Wilco Bauwerhttp://www.developerfusion.com/code/4314/how-to-simulate-a-status-bar-in-a-web-application/How to simulate a status bar in a Web application2004-01-18T12:33:00.00ZIf 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.Edward Tanguay