Sample Code
-
Precise .NET Server Content Caching
by Dimitrios Markatos
A simple demonstration of how to programatically use the caching facilities that ASP.NET offers.
-
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.
-
Transactions made easy with .NET 2.0
by Xavier Larrea
One of the more significant improvement in .NET 2.0 is the transactions area. Now with a single line it becomes extremely easy to support transactional code blocks using the concept of “ambient” transaction thanks to TransactionScope in the System.Transactions namespace.
-
Database Independent ADO.NET 2.0
by Xavier Larrea
ADO.NET 2 has new classes that makes it quite easy to write data-programs independent of the database engine. Learn how here.
-
Encrypting Web.config sections in ASP.NET 2.0
by Xavier Larrea
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!
-
Applying XSL transformations to XML in .NET
by Krishnan
A simple demonstration of how to apply an XSL transformation to an XML file and save the output using .NET
-
VB.NET Stylise Your Forms like you would with CSS on a webpage
by phill
How to Programatically change properties of all the controls on your form.
-
Printing with formatting in VB.NET
by Jereme Guenther
This code demonstrates how to print formatted text using VB.NET, with a a printing class which allows text to be formatted at the character level.
-
Using ASHX files to retrieve DB images
by Harry Pierson
Learn how to use the little-known Http Handler functionality of ASP.NET to serve images from a database.
-
How to disable all elements on a form
by Edward Tanguay
You almost always want to have your form to be disabled as soon as the user pressed the submit button so that the user doesn't accidently submit the form twice. Here's how.
-
Trimming form fields
by Andy Clarke
Web forms often ask visitors for non-essential information, but long and complicated forms can seriously hinder the e-commerce sales process. Wouldn't it be cool to give users the option to hide these optional fields at their own discretion, and with a clever use of Javascript, the DOM and some CSS we can!
-
IP2Location Geolocation .NET Component in VB.NET
by IP2Location Inc
IP2Location .NET component that translates IP address to country, city, region, latitude, longitude, ZIP code, ISP and domain name. Developers use this component for projects related to: 1. Display native language and currency; 2. Redirect based on country; 3. Digital rights management; 4. Prevent password sharing and abuse of service; 5. Reduce credit card fraud; 6. Web log stats and analysis;
-
Add Disappearing Effect To Your Forms
by Adil Hussain Raza
This is a simple piece of code to add continuously "disappearing" effect on your forms.
-
Retrieving the Summary properties of a file
by Praveena
How to fetch the Summary properties from a file, including Author, LastSavedBy, Subject, and LineCount using the DSOFile.OleDocumentProperties object.
-
Using OLE to connect to a text file
by Lee Gunn - .NET C# Scotland
This code demonstrates how to use the OLE database driver in order to connect to a text file.
-
Messenger Client Coding
by Hari K
I hereby submit Messenger client side Coding . This is very useful for Beginners who are going to develop Messenger in VB. In this coding also i was using WinSock control. Datas are transfer between RemotPort.
-
Messenger Server Coding
by Hari K
I hereby submitting Messenger Server side coding. This is useful for Beginners who are going to create Messenger. In this coding i'm using Winsock control. This is getting all the clients data.
-
Priority Queue .NET
by Rasto Novotny
Priority queue is collection like stack or queue. Objects are pushed into priority front in any order, and a priority is assigned to each object. They can be then popped from priority front ordered by priority. It is able to specify if objects with lower priority are popped first or objects with greater priority are popped first.
-
Manipulate Multiple Windows Forms Controls
by Richard
This is just a simple program to show new .NET developers how to enumerate controls in a form and manipulate them.
-
Current System Resolution Change
by Hari K
I herewith submit a coding for Current System Resolution Change. After run this coding Small config Icon created in your SysTray. It contains two menus. One is Change Resolution and another one is Exit. If you press Exit then the Icon is removed from you SysTray. If you press Change Resolotion Current system resolution will change to 1024*768 when current resolution is 800*600. Other wise change 800*600.