Change IIS6 ASP Upload limit

When you trying to upload a file that more than 200KB, you will never ever able to upload it or you will get a blank result instead.

The reason behind this is happened is because IIS 6 set the ASP upload limit to 200KB as default. To get this fix, you will need to change your setting from the IIS metabase setting.

First of all, please make sure that you do allow the IIS metabase to be able to edit during IIS6 is running.

1. Open your IIS6.
2. Select on your hostname.
3. Right click the properties and tick the “Enable Direct Metabase Edit”.
4. Next,  Edit the file named metabase.xml in C:\Windows\System32\inetsrv.
5. Now, search the value of “AspMaxRequestEntityAllowed” and change it to your desired value. **If you wish to change to 20MB, please input 20480000

VBScript FormatNumber Function

Sometimes, you might want to use FormatNumber function from VBScript to update you number/string.

The syntax of the FormatNumber could be find as below.

FormatNumber(Expression[,NumDigAfterDec[, IncLeadingDig[,UseParForNegNum[,GroupDig]]]])

Sample as below,

FormatNumber(10000)

Result: 10,000.00

Continue reading VBScript FormatNumber Function

All in one redirect scripting

HTML redirect:

For most of the webmaster, they will prefer 301 Redirect. With HTML redirect with HTML, I will suggest canonical type.

You may use the following script from the HTML with canonical redirection.

<link rel="canonical" href="http://www.mickgenie.com/" />

htaccess with mod_rewrite redirect:

If you are using Apache or Mod_Rewrite enabled Web services, htaccess with mod_rewrite redirect is very useful, you may use the following script to perform your redirection.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^mickgenie.com
RewriteRule (.*) http://www.mickgenie.com/$1 [R=301,L]

ColdFusion Redirect:

Sample code for Cold Fusion.

<cfheader name="Location" value="http://www.mickgenie.com/">

PHP Redirect:

Sample code for PHP.

<?php
header("location:http://www.mickgenie.com");
exit;
?>

ASP Redirect:

Sample Code for ASP.

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.mickgenie.com/"
%>

ASP.Net Redirect:

Sample Code for ASP.Net.

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.AddHeader("Location","http://www.mickgenie.com/");
}
</script>

Java Redirect:

Sample Code for Java.

<%
response.setHeader( "Location", "http://www.mickgenie.com/" );
response.setHeader( "Connection", "close" );
%>

Perl & CGI redirect:

Sample Code for Perl & CGI.

$q = new CGI;
print $q-› redirect(" http://www.mickgenie.com/ ");

Ruby & Ruby on Rails Redirect:

Sample code for Ruby & Ruby on Rails.

head :moved_permanently, :location =› "http://www.mickgenie.com/