Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 4th, 2006, 10:53 PM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Really need help

Dear All,

I already create an ASP Page..

<%
'Author : Yani
'Date : 29 Dec 2005
'Purpose: To read out.txt file

dim nextAspPage
nextAspPage=resetPINOut.asp

dim nextAspPage1
nextAspPage=generateKeyPairOut.asp

dim nextAspPage2
nextAspPage=insertCertificateOut.asp

dim nextAspPage3
nextAspPage=deleteCertificateOut.asp

dim nextAspPage4
nextAspPage=insertURLOut.asp

dim nextAspPage5
nextAspPage=deleteURLOut.asp


If session("check") = true then
    'Read the data(respond from server) filename : ->out.txt
    Dim writefs
    Dim wfile

    Set writefs = Server.CreateObject("Scripting.FileSystemObject")
    Set wfile = writefs.OpenTextFile("c:\out.txt")
    filecontent = wfile.ReadAll
    wfile.close

    strLength=Len(filecontent)

    'check length
    If strLength=24 Then
    dataOut=filecontent
    session("content") = dataOut

    Else
        Set readfs = Server.CreateObject("Scripting.FileSystemObject")
        Set a = readfs.CreateTextFile("c:\error.txt", True)
        a.WriteLine (filecontent)
        a.Close
    End If

    'to indicate which file to execute
    If session("filename") = true then
        response.redirect nextAspPage
    Elseif session("filename1") = true then
        response.redirect nextAspPage1
    Elseif session ("filename2") then
        response.redirect nextAspPage2
    Elseif session("filename3") then
        response.redirect nextAspPage3
    Elseif session("filename4") then
        response.redirect nextAspPage4
    Else
        response.redirect nextAspPage5
    End If

End If

%>

but I got this error..

Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'resetPINOut'
/ResetPINin/readFile.asp, line 8


anyone could hep me to fix it?

thank you
 
Old January 5th, 2006, 12:46 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Try posting in the ASP forum.. this forum is for ASP.NET

 
Old January 5th, 2006, 10:12 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

If you intend this to be a string assignment, you need quotes:

nextAspPage="resetPINOut.asp"

-Peter
 
Old January 5th, 2006, 07:02 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

FYI: Next time point point out line 8 in your code. This helps others help you quicker. Imagine if it was line 808. Dont know about others but I wouldnt count your lines.

BTW: You need to put all these pages names within quotes like planoie has suggested above. your next error will be here:

nextAspPage=generateKeyPairOut.asp
Should be:
nextAspPage="generateKeyPairOut.asp"




Wind is your friend
Matt
 
Old January 5th, 2006, 07:05 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

jbenson001
This is not the .net area

izyani
Ignore that post, you are in the correct area.


Wind is your friend
Matt









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.