Beans' Place
  Home://      \\ Back              
Programming
Family
Lime Bay

 

© 2002-2010
www.beanland.net.au
 

Classic ASP Controls & Code

This code is written for ASP 3 using VBScript and are tested on IE 6 and FireFox 1.0

The controls contain the full source code. You can download them, modify them and use them freely. I do ask you send me any useful modifications and/or comments you think will benefit other people (seeing as you got the code for free).

Debug Panel

Debug Info is a VBScript class useful for developing and debugging ASP web pages which pass data from page to page as well or if you use a database. By placing 3 lines of code in the top of every page (or include in your header include file) you can see some of what is going on in each of your pages.
Debug Info will display many types of information in separate expandable / collapsible bars. Bars with bold caption text contain data in their hidden pane; click on the bar to expand / collapse the information pane within it. This code is based on an example from Microsoft. Someone by the name of Mike added some great formatting which I have enhanced.
Debug Info can display QueryString, Form, Session, Application, Cookie, Server, and ADO variables and properties in separate expandable / collapsible sections. Most collections are editable and can be saved or re-posted. Also includes basic DOM browser.
DownloadDemo
Version: 2.5, Dec 2004Screenshot
Documentation
 

Excel file read/write via ADO or OLE

ExcelADO is a VBScript class which allows you to open an Excel file via ADO (ODBC/Jet). The class object includes several easy to use methods to read and write data into an excel file. For more advanced features, the class allows you to manipulate the Recordset directly.

ExcelOLE is a VBScript class which allows you to open an Excel file via OLE Automation. The class object includes several easy to use methods to read and write data into an excel file. For more advanced features, the class allows you to manipulate the Excel Workbook directly. Excel must be installed for this class to work.

DownloadADO Demo, OLE Demo
Version: 1.4, Dec 2004
Documentation
 

HTML to Text / Text to HTML

Included are 2 very powerful functions to convert HTML to Text and Text to HTML. The functions are optimised for speed and use regular expressions to do most of the work. HTML2Text formats links to URLs, undoes all HTML char encoding (name and number codes), removes styles, scripts, and of course HTML tags. Spacing and formatting are also cleaned up. Text2HTML formats URLs to links, observes line feeds, tabs and spacing. It also does HTML encoding. An extra function to detect if HTML tags exist in the text is also included. HTML2TXT, HTM2TXT, TXT2HTML, TXT2HTM, TXT
Download
Version: 1.5, Oct 2005Demo
Documentation
 

Spell Checker Interface for Aspell / Ispell

This Spelling Checker Interface is an ASP based web interface (front end) to Aspell/Ispell. This code incorporates ASP VBScript code to interface to Aspell and Javascript/HTML for the human interface. All of this is bundled into one small .asp file.
If you are using Aspell, FCK Editor, Web Wiz Rich Text Editor, or a Text Area box then you should be able to implement this code in a snap. You can alter this code to fit other programs etc, but you will have little bit of work to do. This is not hard for a web programmer, but may be difficult to a newbie.
GNU Aspell is a Free and Open Source spell checker engine which can be downloaded and installed easily.
Web Wiz Rich Text Editor and FCK Editor are free ASP HTML editors which I have used to launch the spell checker. I have included documentation to interface to these.
Download
Version: 1.4, Jun 2004Screenshot
Documentation
 

Plug and Play charts using SVG

This version of SVGChart is an enhanced version originally written by: Paul T. Walchli. What I have done is taken his code and made it reusable (plug the SVG object into any .ASP page - to call the reusable page, supply the data, and it will do everything else for you).
I have not re-written a great deal of Paul's original code, just hacked it about so that it will accept all data and configuration info from it's QueryString. I have also changed the colouring and formatting and fixed a few issues. There is still plenty to be done yet and this code isn't fully clean yet, but at this point it is fully functional and the charts look fantastic.
DownloadDemo
Version: 1.24, Jun 2004Screenshot
Documentation
 

Tab Control (Tabbed Interface)

This code will create a tab control similar to what you would expect from a Windows application. It allows you to organise your page or pages into tabs and for the user to select the tab to show the information neatly. Otherwise you are limited to having a very long page or separate pages which you need to build a nice navigation control (like this one). By copying 1 folder of files to your site and adding a few lines of code to your page, you can have this control up and running in no time. The result is a professional looking, and familiar Windows style tabbed interface. You can also optionally add icons to each tab and set many interface settings. Includes extensive demos and help file. Tested under IE, Mozilla and Firefox.
DownloadDemo
Version: 3.0, Jun 2005Screenshot
Documentation
 

Read and write UTF-8 Text, Delimited (CSV, Tab etc) and Fixed Width files

UTF8Filer is an easy to use class which can read and write any UTF-8 (Encoded, Mixed Byte) files being raw text, Delimited (CSV, Tab etc) or Fixed Width data files.
It includes functions to convert to and from Unicode as well as some useful mixed byte text handling functions.
ASP (pre .NET) does not easily support encoded mixed byte files or text streams - only pure Single Byte and Unicode, so we need use this class to help us out.UFT8, UFT-8
DownloadDemo
Version: 1.4, Jun 2004
Documentation
 

Read and write Delimited (CSV, Tab etc) and Fixed Width files

TextFiler is an easy to use class which can read and write any Single byte or Unicode Delimited files (CSV, Tab etc) and Fixed Width files. Full Microsoft Excel delimited rules are also adhered to:
  • Text including commas/tabs encapsulated in double quotes are treated as 1 field ("text,text" = text,text)
  • Double quotes used in encapsulation are stripped ("text" = text)
  • 2 sets of double quotes are treated as 1 set of double quotes ("" = escaped ")
  • Text in quotes can run over several lines (contains line feeds)
DownloadDemo
Version: 1.2, Dec 2003
Documentation
 

AJAX HTTP Request (Client Side Callbacks)

AJAX (Asynchronous JavaScript and XML) HTTP Requests, (which Microsoft is calling CallBacks in .NET 2.0) is where a piece of JavaScript can call a server side (ASP) page to obtain a result - without the user knowing (no popup windows). It is used increasingly often in populating the next level in a series of linked drop down lists and progress bars. This code is a fault tolerant JS script file with demo. Works for all recent browsers.
DownloadDemo
Version: 1.0, May 2005
Documentation
 

DHTML JS Calendar by Mihai Bazon

Extremely good Javascript/DHTML calendar written by Mihai Bazon. I have added a fix for the time reverting issue and included basic ASP functions to create the object.
Download
Version: 0.9.6.1, Oct 2004
 
 
This code is also available on Planet Source Code
PayPal
 

Request Details

Session Id:jierfs45cvnc4f55t5y02x2dRequest Type:GET
Time of Request:3/10/2010 2:40:25 PMStatus Code:200
Request Encoding:Unicode (UTF-8)Response Encoding:Unicode (UTF-8)

Trace Information

CategoryMessageFrom First(s)From Last(s)
aspx.pageBegin PreInit
aspx.pageEnd PreInit0.0006502213092792710.000650
aspx.pageBegin Init0.0007001932660534070.000050
aspx.pageEnd Init0.0007487605608645170.000049
aspx.pageBegin InitComplete0.000770760739483790.000022
aspx.pageEnd InitComplete0.0007937654728945250.000023
aspx.pageBegin PreLoad0.0008153741180673390.000022
aspx.pageEnd PreLoad0.0008373228543359830.000022
aspx.pageBegin Load0.0008595516656247210.000022
aspx.pageEnd Load0.0009191219076538360.000060
aspx.pageBegin LoadComplete0.0009426882200589440.000024
aspx.pageEnd LoadComplete0.0009648227203715280.000022
aspx.pageBegin PreRender0.001013933017772620.000049
aspx.pageEnd PreRender0.001047662052335450.000034
aspx.pageBegin PreRenderComplete0.001072741627221580.000025
aspx.pageEnd PreRenderComplete0.00109448459408770.000022
aspx.pageBegin SaveState0.003445161382513170.002351
aspx.pageEnd SaveState0.004073856925962310.000629
aspx.pageBegin SaveStateComplete0.004126269536482990.000052
aspx.pageEnd SaveStateComplete0.004150563186567830.000024
aspx.pageBegin Render0.004172186121282490.000022
aspx.pageEnd Render0.006585232472983840.002413

Control Tree

Control UniqueIDTypeRender Size Bytes (including children)ViewState Size Bytes (excluding children)ControlState Size Bytes (excluding children)
__PageASP.programming_classicasp_default_aspx2213800
    ctl00ASP.main_master2213800
        ctl00$ctl12System.Web.UI.LiteralControl17100
        ctl00$ctl00System.Web.UI.HtmlControls.HtmlHead78200
            ctl00$ctl13System.Web.UI.LiteralControl9400
            ctl00$genTitleSystem.Web.UI.HtmlControls.HtmlTitle4400
            ctl00$ctl01System.Web.UI.HtmlControls.HtmlMeta6900
            ctl00$ctl02System.Web.UI.HtmlControls.HtmlMeta10400
            ctl00$ctl03System.Web.UI.HtmlControls.HtmlMeta6600
            ctl00$ctl04System.Web.UI.HtmlControls.HtmlMeta4000
            ctl00$ctl05System.Web.UI.HtmlControls.HtmlMeta5100
            ctl00$ctl06System.Web.UI.HtmlControls.HtmlLink5600
            ctl00$ctl07System.Web.UI.HtmlControls.HtmlLink4800
            ctl00$ctl08System.Web.UI.HtmlControls.HtmlLink6100
            ctl00$ctl14System.Web.UI.LiteralControl6600
            ctl00$litPageHeaderSystem.Web.UI.WebControls.Literal701120
        ctl00$ctl15System.Web.UI.LiteralControl1300
        ctl00$divGUISystem.Web.UI.WebControls.Panel203100
            ctl00$ctl16System.Web.UI.ResourceBasedLiteralControl33600
            ctl00$lblPageTitleSystem.Web.UI.WebControls.Label5500
            ctl00$ctl17System.Web.UI.LiteralControl5900
            ctl00$tblTopNavSystem.Web.UI.HtmlControls.HtmlTable136000
                ctl00$ctl09System.Web.UI.HtmlControls.HtmlTableRow121000
                    ctl00$tdHomeSystem.Web.UI.HtmlControls.HtmlTableCell19900
                        ctl00$ctl18System.Web.UI.LiteralControl1400
                        ctl00$hypHomeSystem.Web.UI.WebControls.HyperLink8400
                        ctl00$ctl19System.Web.UI.LiteralControl1200
                    ctl00$tdLine1System.Web.UI.HtmlControls.HtmlTableCell13300
                        ctl00$ctl20System.Web.UI.LiteralControl5900
                    ctl00$tdBackSystem.Web.UI.HtmlControls.HtmlTableCell23000
                        ctl00$ctl21System.Web.UI.LiteralControl2000
                        ctl00$hypBackSystem.Web.UI.WebControls.HyperLink10900
                        ctl00$ctl22System.Web.UI.LiteralControl1200
                    ctl00$tdLine2System.Web.UI.HtmlControls.HtmlTableCell12700
                        ctl00$ctl23System.Web.UI.LiteralControl5900
                    ctl00$tdLogoutSystem.Web.UI.HtmlControls.HtmlTableCell17900
                        ctl00$ctl24System.Web.UI.LiteralControl6400
                        ctl00$lblLoginNameSystem.Web.UI.WebControls.Label37200
                        ctl00$ctl25System.Web.UI.LiteralControl1600
                    ctl00$tdMessageSystem.Web.UI.HtmlControls.HtmlTableCell6900
                        ctl00$ctl26System.Web.UI.LiteralControl600
                    ctl00$ctl10System.Web.UI.HtmlControls.HtmlTableCell11100
                        ctl00$ctl27System.Web.UI.LiteralControl800
                        ctl00$lblDateSystem.Web.UI.WebControls.Label3200
                        ctl00$ctl28System.Web.UI.LiteralControl1200
                    ctl00$ctl11System.Web.UI.HtmlControls.HtmlTableCell11400
                        ctl00$ctl29System.Web.UI.LiteralControl5900
            ctl00$ctl30System.Web.UI.LiteralControl18800
        ctl00$ctl31System.Web.UI.LiteralControl400
        aspnetFormSystem.Web.UI.HtmlControls.HtmlForm1892200
            ctl00$ctl32System.Web.UI.LiteralControl200
            ctl00$LeftNavPaneSystem.Web.UI.WebControls.Panel407700
                ctl00$ctl33System.Web.UI.LiteralControl500
                ctl00$pnlProgHeaderSystem.Web.UI.WebControls.Panel12500
                    ctl00$ctl34System.Web.UI.LiteralControl1300
                ctl00$ctl35System.Web.UI.LiteralControl200
                ctl00$pnlProgContentSystem.Web.UI.WebControls.Panel205900
                    ctl00$ctl36System.Web.UI.ResourceBasedLiteralControl199400
                ctl00$ctl37System.Web.UI.LiteralControl200
                ctl00$pnlFamilyHeaderSystem.Web.UI.WebControls.Panel12400
                    ctl00$ctl38System.Web.UI.LiteralControl800
                ctl00$ctl39System.Web.UI.LiteralControl200
                ctl00$pnlFamilyContentSystem.Web.UI.WebControls.Panel72900
                    ctl00$ctl40System.Web.UI.ResourceBasedLiteralControl66200
                ctl00$ctl41System.Web.UI.LiteralControl200
                ctl00$pnlMiscHeaderSystem.Web.UI.WebControls.Panel12200
                    ctl00$ctl42System.Web.UI.LiteralControl1000
                ctl00$ctl43System.Web.UI.LiteralControl200
                ctl00$pnlMiscContentSystem.Web.UI.WebControls.Panel67200
                    ctl00$ctl44System.Web.UI.ResourceBasedLiteralControl60700
                ctl00$ctl45System.Web.UI.LiteralControl12900
            ctl00$ctl46System.Web.UI.LiteralControl400
            ctl00$LeftNavPaneHeaderSystem.Web.UI.WebControls.Panel18100
                ctl00$ctl47System.Web.UI.LiteralControl1100
            ctl00$ctl48System.Web.UI.LiteralControl400
            ctl00$ContentPaneSystem.Web.UI.WebControls.Panel1426900
                ctl00$ctl49System.Web.UI.LiteralControl300
                ctl00$cphMasterSystem.Web.UI.WebControls.ContentPlaceHolder1415100
                    ctl00$cphMaster$ctl00System.Web.UI.ResourceBasedLiteralControl1415100
                ctl00$ctl50System.Web.UI.LiteralControl200
            ctl00$ctl51System.Web.UI.LiteralControl200
        ctl00$ctl52System.Web.UI.LiteralControl21500

Session State

Session KeyTypeValue

Application State

Application KeyTypeValue

Request Cookies Collection

NameValueSize

Response Cookies Collection

NameValueSize

Headers Collection

NameValue
Cache-Controlno-cache
Connectionclose
Pragmano-cache
Accepttext/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encodinggzip
Accept-Languageen-us,en;q=0.5
Hostwww.beanland.net.au
User-AgentCCBot/1.0 (+http://www.commoncrawl.org/bot.html)
x-cc-idccc01-02
X-Rewrite-URL/Programming/classicasp/

Response Headers Collection

NameValue
X-AspNet-Version2.0.50727
Cache-Controlprivate
Content-Typetext/html

Form Collection

NameValue

Querystring Collection

NameValue

Server Variables

NameValue
ALL_HTTPHTTP_CACHE_CONTROL:no-cache HTTP_CONNECTION:close HTTP_PRAGMA:no-cache HTTP_ACCEPT:text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING:gzip HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5 HTTP_HOST:www.beanland.net.au HTTP_USER_AGENT:CCBot/1.0 (+http://www.commoncrawl.org/bot.html) HTTP_X_CC_ID:ccc01-02 HTTP_X_REWRITE_URL:/Programming/classicasp/
ALL_RAWCache-Control: no-cache Connection: close Pragma: no-cache Accept: text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip Accept-Language: en-us,en;q=0.5 Host: www.beanland.net.au User-Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html) x-cc-id: ccc01-02 X-Rewrite-URL: /Programming/classicasp/
APPL_MD_PATH/LM/W3SVC/11039/ROOT
APPL_PHYSICAL_PATHC:\clients\CL696\beanland.net.au\public_html\
AUTH_TYPE 
AUTH_USER 
AUTH_PASSWORD 
LOGON_USER 
REMOTE_USER 
CERT_COOKIE 
CERT_FLAGS 
CERT_ISSUER 
CERT_KEYSIZE 
CERT_SECRETKEYSIZE 
CERT_SERIALNUMBER 
CERT_SERVER_ISSUER 
CERT_SERVER_SUBJECT 
CERT_SUBJECT 
CONTENT_LENGTH0
CONTENT_TYPE 
GATEWAY_INTERFACECGI/1.1
HTTPSoff
HTTPS_KEYSIZE 
HTTPS_SECRETKEYSIZE 
HTTPS_SERVER_ISSUER 
HTTPS_SERVER_SUBJECT 
INSTANCE_ID11039
INSTANCE_META_PATH/LM/W3SVC/11039
LOCAL_ADDR70.84.3.19
PATH_INFO/Programming/classicasp/Default.aspx
PATH_TRANSLATEDC:\clients\CL696\beanland.net.au\public_html\Programming\classicasp\Default.aspx
QUERY_STRING 
REMOTE_ADDR38.107.191.96
REMOTE_HOST38.107.191.96
REMOTE_PORT49960
REQUEST_METHODGET
SCRIPT_NAME/Programming/classicasp/Default.aspx
SERVER_NAMEwww.beanland.net.au
SERVER_PORT80
SERVER_PORT_SECURE0
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/6.0
URL/Programming/classicasp/Default.aspx
HTTP_CACHE_CONTROLno-cache
HTTP_CONNECTIONclose
HTTP_PRAGMAno-cache
HTTP_ACCEPTtext/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSETISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODINGgzip
HTTP_ACCEPT_LANGUAGEen-us,en;q=0.5
HTTP_HOSTwww.beanland.net.au
HTTP_USER_AGENTCCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP_X_CC_IDccc01-02
HTTP_X_REWRITE_URL/Programming/classicasp/

Microsoft .NET Framework Version:2.0.50727.3607; ASP.NET Version:2.0.50727.3082