HTML Sample Code
-
Interacting with TinyPic from C#
by Fernando Sanchez
The following tutorial will demonstrate how to interact with http://tinypic.com, an image mirroring service, directly from a C# application using the WebRobot component.
-
Show a HTML Help topic by Context ID
by James Crowley
How to display a HTML Help topic by specifying its context id
-
Advancing the Webbrowser Control
by Kym Manson
Easy way to add lots of events to the webbrowser control
-
Creating a dynamic graphic which returns a .jpg
by Edward Tanguay
This code allows an .aspx file to receive parameters (file name and width of picture) and return a JPEG resized to the requested width.
-
TextArea character limits
by Super Tal
This code will show how to limit the number of character a user can enter into the HTML TextArea form field.
-
Centre Aligning a Block Element
by Trenton Moss
Learn how to have a fixed width layout website, and the content floated in the middle of the screen, with pre IE 6 compatability.
-
Converting HTML Colour to RGB
by Kym Manson
How to convert a HTML colour code to a RGB format.
-
Encoding your script files
by ElementK Journals
Protect both your server-side and client-side scripting by using the MS encoding utility
-
HTML COLOR Selector
by Colin Harman MACITP
Select a colour using the Common Dialog control, and automatically convert it to the HTML hex code
-
Count Down
by Nick Avery
Count down the number of days to a date.
-
Create a Percentage Table
by Julia Lynne Green
The task at hand was to establish a chart that recorded the number of magazines checked off, and then compute the percentages of the total every time the form is submitted.
-
HTML Editor
by James Crowley
A (very) basic HTML editor!
-
Auto Form
by Santi Mondejar
Automatically generate a HTML form from an SQL query
-
A Simple ASP.NET MessageBox Class
by Lee Gunn - .NET C# Scotland
When moving from Windows Forms to ASP.NET Web Forms, an API that may be missed is that offered by the System.Windows.Forms.MessageBox Class. Here we implement it for ASP.NET!
-
Show a HTML Help topic by its filename
by James Crowley
How to display a HTML Help topic by specifying its filename
-
Internet Transfer Control
by S.S. Ahmed
This is a simple code that demostrates the usage of internet transfer control to retrieve HTML code from a web page.
-
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.
-
Image to HTML
by Michael H
A simple program that converts images into blocks of font tag colored 1s and 0s.
-
Converting HTML to Text
by Karl Moore
Demonstrates how to use a simple regular expression to remove all HTML tags from text