-
Error Message after 4-5 times hitting NEXT button?
Hello All,
I am receiving an error message after I've hit the NEXT button about 4-5 times. Everytime I hit the NEXT button it works until the 4-5 time. Does anyone have any idea? see code (using VBScript):
============CODE STARTs===============
Set MyDb = Server.CreateObject("AspDB.Pro" 'Insert the ASP-db component
MyDb.dbDBType="SQL"
MyDb.dbDSN=Session("gpnAdminDSN"
If session("gpnViewSQL" = "" And Request.Form("SQL" <> "" Then
session("gpnViewSQL" = Request.Form("SQL"
ElseIf session("gpnViewParam" <> Request.Form("SQL" Then
session("gpnViewSQL" = Request.Form("SQL"
End If
' checking to see if actual SQL is being passed
Response.Write session("gpnViewSQL"
MyDb.dbSQL = session("gpnViewSQL"
MyDb.dbExportFlds = "Description,VirtualAddress,RealAddress,IDEntr yPoint"
MyDb.dbMode = "form"
MyDb.dbFormDisplayFlds = -1 'Hide all the fields from displaying
MyDb.dbStatusBar = false 'Turn off the status bar
MyDb.dbImageDir="/im/isg/gatewayteam/gpn/gpnimages/" 'Point to the "images" directory
MyDb.dbNavigationItem="Prev,Next" 'Only show these 2 buttons
MyDb.dbNavigationIcon="gif,grid, form, top, prev, next, bottom, row+, row-, grid+, grid-, form+, form-, filter, resetfilter, download, color, reload"
MyDb.dbUnit = 203 'Set dbUnit to 203
MyDb.aspDBPro 'Display it!
strDescription = Session("ASPdb_203_Description"
strVirtualAddress = Session("ASPdb_203_VirtualAddress"
strRealAddress = Session("ASPdb_203_RealAddress"
strIDEntryPoint = Session("ASPdb_203_IDEntryPoint"
' after 4-5th time never gets here!
============CODE ENDs===============
Dan
-
Error Message after 4-5 times hitting NEXT button? (reply)
Daniel,
Two questions:
1) What's the error message?
2) What version of ASP-db are you running?
Mark.
------------
Daniel Madden at 1/28/00 7:56:08 AM
Hello All,
I am receiving an error message after I've hit the NEXT button about 4-5 times. Everytime I hit the NEXT button it works until the 4-5 time. Does anyone have any idea? see code (using VBScript):
============CODE STARTs===============
Set MyDb = Server.CreateObject("AspDB.Pro" 'Insert the ASP-db component
MyDb.dbDBType="SQL"
MyDb.dbDSN=Session("gpnAdminDSN"
If session("gpnViewSQL" = "" And Request.Form("SQL" <> "" Then
session("gpnViewSQL" = Request.Form("SQL"
ElseIf session("gpnViewParam" <> Request.Form("SQL" Then
session("gpnViewSQL" = Request.Form("SQL"
End If
' checking to see if actual SQL is being passed
Response.Write session("gpnViewSQL"
MyDb.dbSQL = session("gpnViewSQL"
MyDb.dbExportFlds = "Description,VirtualAddress,RealAddress,IDEntr yPoint"
MyDb.dbMode = "form"
MyDb.dbFormDisplayFlds = -1 'Hide all the fields from displaying
MyDb.dbStatusBar = false 'Turn off the status bar
MyDb.dbImageDir="/im/isg/gatewayteam/gpn/gpnimages/" 'Point to the "images" directory
MyDb.dbNavigationItem="Prev,Next" 'Only show these 2 buttons
MyDb.dbNavigationIcon="gif,grid, form, top, prev, next, bottom, row+, row-, grid+, grid-, form+, form-, filter, resetfilter, download, color, reload"
MyDb.dbUnit = 203 'Set dbUnit to 203
MyDb.aspDBPro 'Display it!
strDescription = Session("ASPdb_203_Description"
strVirtualAddress = Session("ASPdb_203_VirtualAddress"
strRealAddress = Session("ASPdb_203_RealAddress"
strIDEntryPoint = Session("ASPdb_203_IDEntryPoint"
' after 4-5th time never gets here!
============CODE ENDs===============
Dan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|