Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 18th, 2004, 10:31 PM
kingman2222 kingman2222 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 17 kingman2222 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking asp code problems

hi,

can any help checking any error existing in the following code, cos when I add this to my pages,
the asp page can't load, when i take this section out, then the pages work fine again. I think there might have error inside teh code, but i don't know.

The Access file is 100% ok and work, the OCBC also set up inside control panel.


<%
SetOrderId = "OrderID"
If Session(SetOrderId)="" Then
set UD_rsId = Server.CreateObject("ADODB.Recordset")
UD_rsId.ActiveConnection = "dsn=now;"
IDtable = "tGetOrderID"
IDName = "OrderID"
UD_sql = "select " & IDName & " from " & IDtable
UD_rsId.Source = UD_sql
UD_rsId.CursorType = 0
UD_rsId.CursorLocation = 2
UD_rsId.LockType = 2
UD_rsId.Open
Session(SetOrderId) = UD_rsId.Fields(IDName).value
UD_rsId.Fields(IDName).value = Session(SetOrderId) + 1
UD_rsId.Update
UD_rsId.Close
set UD_rsId = Nothing
End If
%>

--
====================
www.EngBook.com.hk
網上直銷語言學習教材
====================

技術資訊 (供技術支援人員使&#29992

  • 錯誤類型:
    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    [Microsoft][ODBC 驅動程式管理員] 找不到資料來源名稱且未指定預設的驅動程式
    /list_n_pay.asp, line 22
  • 瀏覽器類型:
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
  • 頁數:
    GET /list_n_pay.asp
  • 時間:
    2004年5月18日, 上午 12:14:10
  • 其他資訊:
    Microsoft Support

Reply With Quote
  #2  
Old May 18th, 2004, 10:33 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,764 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 6 h 8 m 20 sec
Reputation Power: 452
Don't double post, I just answered this question in the other forum area.

Reply With Quote
  #3  
Old May 18th, 2004, 11:09 PM
kingman2222 kingman2222 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 17 kingman2222 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry sorry, anyway, thanks for your help

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > asp code problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT