title: Classic asp include
body: <p>I am trying to separate some asp logic out into a separate page.
  For now, I am trying to call a simple function. </p>
  
  <p>Here is the simple index page that I am using</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Calling a webservice from classic ASP&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;%
  If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
   %&gt;
    &lt;!--#include file="aspFunctions.asp"--&gt;
    &lt;%
    doStuff()
  End If
  %&gt;
  &lt;FORM method=POST name="form1" ID="Form1"&gt;
  ID:
  &lt;INPUT type="text" name="corpId" ID="id" value="050893"&gt;
  &lt;BR&gt;&lt;BR&gt;
  &lt;INPUT type="submit" value="GO" name="submit1" ID="Submit1" &gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is aspfunctions.asp</p>
  
  <pre><code>sub doStuff()
      Response.Write("In Do Stuff")
  end sub
  </code></pre>
  
  <p>When i hit the submit button on my form i get the below
  sub doStuff() Response.Write("In Do Stuff") end sub</p>
  
  <p>Microsoft VBScript runtime error '800a000d'</p>
  
  <p>Does anyone have any idea what i could be doing wrong?</p>
  
  <p>Any help is greatly appreciated</p>
  
  <p>Thanks
  Damien
  Type mismatch: 'doStuff'</p>
  
  <p>/uat/damien/index.asp, line 15 </p>