SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

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 February 19th, 2002, 11:34 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Database connection and forms

<i><b>Originally posted by : Jen (jennifer.jacobs@inet.com)</b></i><br />I hope this isn't a completely ignorant question, but I am having a problem with database connections and forms. On my first asp page I have a form that has two dropdown lists from the same database - the responses to which feed the form on the next page, and so on. I am getting an "unspecified error" where the drop down lists should appear. If I am accessing the database only once, but creating two different drop down lists then I am assuming I don't need to create an ADODB connection each time. I can create it once and use it all throughout the page. Also, I was assuming that I could create the same connection on each subsequent form. Do I have to create a separate ADODB connection each time I hit the database and give each connection a different name, e.g. conna for the first drop down and connb for the second drop down and connc for the 3rd drop down on the 2nd asp page. Also, where is the correct place to close a connection when using a form? Sorry if this is a stupid question. <br /><br />

Reply With Quote
  #2  
Old March 8th, 2002, 02:48 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Christy</b></i><br />You just need to open a connection to the database once. Close the connection as soon as you don't need to access the database anymore.<br /><br />Christy<br /><br />------------<br />Jen at 2/19/2002 9:34:56 AM<br /><br />I hope this isn't a completely ignorant question, but I am having a problem with database connections and forms. On my first asp page I have a form that has two dropdown lists from the same database - the responses to which feed the form on the next page, and so on. I am getting an "unspecified error" where the drop down lists should appear. If I am accessing the database only once, but creating two different drop down lists then I am assuming I don't need to create an ADODB connection each time. I can create it once and use it all throughout the page. Also, I was assuming that I could create the same connection on each subsequent form. Do I have to create a separate ADODB connection each time I hit the database and give each connection a different name, e.g. conna for the first drop down and connb for the second drop down and connc for the 3rd drop down on the 2nd asp page. Also, where is the correct place to close a connection when using a form? Sorry if this is a stupid question. <br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Database connection and forms


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 6 hosted by Hostway