Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with an error message... 1

Status
Not open for further replies.

jeevenze

Technical User
Mar 13, 2001
62
US
I'm a novice at ASP and am trying learn it by taking tutorials. I'm getting an error on one my tutorials and I can't figure out why I'm getting it as the code I have is exactly the same as it is in the tutorial. Essentially there are two pages, one has a form that asks for a user to input a number and another page tells the user if he's made an error, i.e. if he's entered letters instead of a number. I've posted the error message I receive below and below that I've posted the code for both pages. Any help is much appreciated:

No Letters

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'Transfer'

/learnasp/check.asp, line 9


code for enter page:
<HTML>
<HEAD>
<TITLE>Userproof Page</TITLE>
</HEAD>
<BODY>
<FORM NAME=&quot;Form1&quot; ACTION=&quot;check.asp&quot; METHOD=&quot;POST&quot;>
Please enter a whole number from one to five (1-5)<BR>
<INPUT TYPE=TEXT NAME=TextBox1>
<BR>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>

Code for check page
<HTML>
<HEAD>
<TITLE>Check Page</TITLE>
</HEAD>
<BODY>
<% varTest = Request.Form(&quot;TextBox1&quot;)
If IsNumeric(varTest) = False Then
Response.Write &quot;No Letters<BR>&quot;
Server.Transfer &quot;enter.asp&quot;
End If
If varTest<1 Then
Response.Write &quot;Too Small<BR>&quot;
Server.Transfer &quot;enter.asp&quot;
End If
If varTest>5 Then
Response.Write &quot;Too Large<BR>&quot;
Server.Transfer &quot;enter.asp&quot;
End If
If CDbl(varTest) <> CInt(VarTest)then
Response.Write &quot;No decimals<BR>&quot;
Server.Transfer &quot;enter.asp&quot;
End If
varTest = varTest * 10
Response.Write &quot;<BR>Your lucky number is &quot; & varTest
%>
</BODY>
</HTML>
 
the object doesn't support transfer because your web server doesn't support ASP 3.0.

Try using Response.redirect instead... that should fix everything up.

ex:
Instead of
Server.Transfer &quot;enter.asp&quot;
use
Response.redirect &quot;enter.asp&quot;

good luck
leo
 
I'm actually using PWS. I'm running a windows 98...I can't run IIS5 with win98 can I??
 
Hi!
Since you're using PWS with Win 98, use Response.Redirect &quot;enter.asp&quot; rather than Sever.Transfer.
Server.Transfer was introduced in IIS 5.0 and is a new method so this might be the problem. User the redirect method and it will work.
Sashi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top