.NET Sample Code
-
Url Rewriting with Regex for ASP.NET 2.0
by Xavier Larrea
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.
-
Executing a .CS file
by David Cumps
Demonstrates how to write a C# program that can "launch" a .cs file and execute it.
-
How to get an array of all files in a directory
by Edward Tanguay
This simple code will give you an array containing all files in a directory.
-
Uploading Files Using ASP.NET
by Man from Mars
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.
-
IE Browser Helper Objects
by Steven Cohn
A demonstration of how to implement an IE Browser Helper Object in C#
-
String Concatenation
by James Crowley
How to join/append two strings together in VB
-
Reading Binary Data in C#
by Jon Skeet
How to read binary data from a file in C# - the right way!
-
The Trick to Temporary Files
by Karl Moore
Karl Moore reveals how to save temporary files in... the temp directory!
-
The "Using" Statement in C#
by Xavier Larrea
The using statement in the c# language allows us to define an scope for an object lifetime. This statement obtains the resource specified, executes the statements and finally calls the Dispose() method of the object to clean it up.
-
Debug ASP.NET pages using Tracing
by Julian Roberts
Demonstrates a useful debugging technique taking advantage of traces in ASP.NET.
-
Building an 'AJAX' ProgressBar in Atlas
by Wilco Bauwer
Learn how to write a basic, client-side Atlas progress bar, and download the source code.
-
Screen Resolution
by Bharat Nagarajan
Helps you to get the screen resolution from VB.NET
-
Using Microsoft Agent in C#
by M M Harinath
Microsoft Agent is a new technology, which allows Programmer to create and use animated characters that can interact with end users. It also supports the Microsoft Speech API, which allows the character to speak with the user.
-
VB Express Color Object to Hex String
by Chris Buske
This function takes one color type variable and returns the hex code in a string.
-
How to simulate a status bar in a Web application
by Edward Tanguay
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.
-
Sending email from ASP.NET
by Orcs Web
One of the most commonly performed operations that I see in web applications - aside from database actions - is sending email from code. This demonstrates how in ASP.NET.
-
Spoofing the Referrer using HttpWebRequest
by Dave Wanta
Here's a simple way to spoof the referrer to a web page during a web request.
-
Resizing images retrieved from SQL server
by Simon Soanes
A neat way of fetching an image stored in SQL Server and resizing it before save/sending it anywhere.
-
Checking Internet Availability using C#
by M M Harinath
While developing Internet applications, this is important to check whether the internet connection is available or not. This snippet will be useful to achieve the above mentioned task.
-
Clearing TreeView taking too much time
by Palo Mraz
Explores an odd feature of the System.Windows.Forms.TreeView and a simple workaround.