Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 May 12th, 2004, 03:31 AM
Authorized User
 
Join Date: May 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Consistency

Hi
  My ASP Pages that has database connectivity works nicely sometimes it gives me Unspecified Error and if I refresh the same page after sometime it works nicely.Can anyone help to get rid of the problem
__________________
Try Try Try Until You Succeed
 
Old May 12th, 2004, 07:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Can you post your code?

 
Old May 12th, 2004, 08:28 AM
Authorized User
 
Join Date: May 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is the piece of code in global.asa

Sub Application_OnStart()
    Application("DsnStr") = "DSN=XSL_DSN;"
    Application("server")= 0
end sub

Sub Session_OnStart()
    session.Timeout=1200
    session("user")=""
    session("registration_number")=""
end sub


and this is how I connect to database

    set conn = createobject("adodb.Connection")
    conn.open Application("dsnstr")

here iam able to connect and the page displays correctly for most of the time and suddenly the same code give unspecified error.
if i refresh the same page after sometime it works..









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