Category: ASP (classic)

asp function to check if an email address is valid

function IsValidEmail(email) IsValidEmail = true dim names, name, i, c names = Split(email, "@") if UBound(names) <&rt; 1 then IsValidEmail = false exit function end if for each name in names if Len(name) <=… more »

Install phpMyAdmin to Parallels Helm control panel as an application package

I tried recently to add phpmyadmin on my parallels helm control panel but found little help from the forums and found the developers documents poor (as usual for Helm). I decided to create my own phpmyadmin parallels helm application package. Please n… more »

Mysql field in asp generates error: Variable uses an Automation type not supported in VBScript

Recently whilst migrating an old site from mysql 4 and Windows 2000 server to MYSQL 5 and IIS7/Windows 2008 an old script that worked fine stopped working giving error type mismatch and when trying to determine the type name it returned error Variable u… more »

Run Live mesh on windows XP 64

I recently discovered windows live mesh and my initial thoughts are quite possitive. However when I tried to run it on my windows xp pro 64 machince I discovered that this is not an operating system supported by live mesh. The work around was sim… more »

replace characters in a string using asp

mytext = "yo-yo-is?" mytext = Replace(mytext , "-", "@") Response.Write mytext The code above will search our mytext and will replace all dashes with @. The result will be yo@yo@is? more »

Mysql returns no results in ASP page for a valid query after upgrade to 5.xx from 3.xx

I came across something very bizarre recently. After Mysql was upgraded from version 3.xx to 5.xx the asp pages that worked fine for years stop working as some basic queries (nothing clever just doing select) stopped returning resuts. The reason? The… more »

Convert string to array using split in ASP

nice and simple Dim mytext, MyArray 'the text to convert mytext= "Hellow world" 'The array is below MyArray= split(mytext, " ") more »

Flash Embedded in HTML

Simply paste the code below in the page you want to display your flash movie. Make sure you change the myfile.swf and dimensions with the name of the file you are uploading <blockquote> <object width="200" height="200"> <param name="movie"… more »