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:
  #16  
Old March 7th, 2006, 07:32 AM
Lafinboy's Avatar
Lafinboy Lafinboy is offline
The Laughing Moderator
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 3,268 Lafinboy User rank is Sergeant Major (2000 - 5000 Reputation Level)Lafinboy User rank is Sergeant Major (2000 - 5000 Reputation Level)Lafinboy User rank is Sergeant Major (2000 - 5000 Reputation Level)Lafinboy User rank is Sergeant Major (2000 - 5000 Reputation Level)Lafinboy User rank is Sergeant Major (2000 - 5000 Reputation Level)Lafinboy User rank is Sergeant Major (2000 - 5000 Reputation Level)  Folding Points: 29199 Folding Title: Starter FolderFolding Points: 29199 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 1 Day 11 h 5 m 21 sec
Reputation Power: 36
Send a message via ICQ to Lafinboy Send a message via AIM to Lafinboy Send a message via MSN to Lafinboy Send a message via Yahoo to Lafinboy Send a message via Skype to Lafinboy
The original would have been Access 2000.

Attached is a 97 conversion of the database.
Attached Files
File Type: zip testDB_97.zip (8.9 KB, 503 views)

Reply With Quote
  #17  
Old March 7th, 2006, 08:53 AM
Phoenix_riser Phoenix_riser is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 225 Phoenix_riser User rank is Sergeant (500 - 2000 Reputation Level)Phoenix_riser User rank is Sergeant (500 - 2000 Reputation Level)Phoenix_riser User rank is Sergeant (500 - 2000 Reputation Level)Phoenix_riser User rank is Sergeant (500 - 2000 Reputation Level)Phoenix_riser User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 2 h 28 m 15 sec
Reputation Power: 16
Thank you, that is what it was.

Reply With Quote
  #18  
Old April 1st, 2006, 07:18 PM
hauruapai hauruapai is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Aotearoa
Posts: 115 hauruapai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 17 m 32 sec
Reputation Power: 4
Thumbs up Getting the ID's to write to a database

If you want to get the IDs to write to a database, how to find the string name is set out in this post

Reply With Quote
  #19  
Old April 10th, 2006, 06:20 AM
hauruapai hauruapai is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Aotearoa
Posts: 115 hauruapai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 17 m 32 sec
Reputation Power: 4
Unhappy How to get the list boxes on seperate lines????

Hi,

I have been trying to get the listboxes on seperate lines instead of one line ie: instead of
Select Country Select City
I would like
Select Country
Select City

After adding in an extra & VbCrLf all over the place line by line, and then trying a
Code:
%>
<br>
<%

all over the place, I can only get the whole row to move down, but not get the boxes on 2 lines.

I have finally worked out that it has something (I think) to do with the following line
Code:
<%= buildLinkedList("listCountry",0,1,1,"Select a country","width150","listCity",2,3,1,"Select a city","width150") %>
but can not work out how to get the line break in.

Can someone please help?

Reply With Quote
  #20  
Old April 10th, 2006, 06:22 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,836 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 13 h 54 m 20 sec
Reputation Power: 2389
you need to add "<br />" after the "</select>" html.

Reply With Quote
  #21  
Old April 10th, 2006, 06:31 AM
hauruapai hauruapai is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Aotearoa
Posts: 115 hauruapai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 17 m 32 sec
Reputation Power: 4
Unhappy

I have tried that!

For example current code is
Code:
strList1 = strList1 & "</select>"  & VbCrLf  


I have tried
Code:
strList1 = strList1 & "</select>"  & VbCrLf  %>
	<br />
	<%


and
Code:
strList1 = strList1 & "</select>"  & VbCrLf & VbCrLf 


but it will only move the whole line down, but the 2nd box to the second line

The </select> s are all in a function.

Any other ideas will be appreciated

Last edited by hauruapai : April 10th, 2006 at 06:33 AM. Reason: adding more info

Reply With Quote
  #22  
Old April 10th, 2006, 06:53 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,836 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 13 h 54 m 20 sec
Reputation Power: 2389
what you tried is wrong.. instead, have this:
Code:
strList1 = strList1 & "</select><br />"  & VbCrLf  

Reply With Quote
  #23  
Old April 10th, 2006, 07:02 AM
hauruapai hauruapai is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Aotearoa
Posts: 115 hauruapai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 17 m 32 sec
Reputation Power: 4
Thumbs up Yes!

Thank you soooo much

Reply With Quote
  #24  
Old April 19th, 2006, 04:19 AM
webb webb is offline
Help and be helped
ASP Free Novice (500 - 999 posts)
 
Join Date: Feb 2004
Location: Australia
Posts: 545 webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 7 h 55 m 3 sec
Reputation Power: 67
Thank you for this code. I can't believe i missed it oh well.

Inserting works like a charm..

I have a small request about using this when updating my rs.

I'm trying to get the data out of the database and i want it to say selected but it comes up with select a category.

If anyone can throw some help my way i'll appreciate it.

I just need to be able to tell the data to read in the variables i've set on the page which are "cat_id" and "subcat_id"

All help would be appreciated

webb
__________________
Life is Good

Reply With Quote
  #25  
Old April 19th, 2006, 09:36 AM
hauruapai hauruapai is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Aotearoa
Posts: 115 hauruapai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 17 m 32 sec
Reputation Power: 4
Smile This may help

Look for the following lines of code and change the bits in red to what ever it is that you want

Code:
<form id="testform" method="post">
<%= buildLinkedList("listCountry",0,1,1,"Select a country","width150","listCity",2,3,1,"Select a city","width150") %>
</form>

Reply With Quote
  #26  
Old April 19th, 2006, 09:53 AM
webb webb is offline
Help and be helped
ASP Free Novice (500 - 999 posts)
 
Join Date: Feb 2004
Location: Australia
Posts: 545 webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 7 h 55 m 3 sec
Reputation Power: 67
I've done the insert but whe it's time to do an update the values come up blank.

The items in red are the prompts that say select a city or select a country.

How would i change this to the values of my variables???

Reply With Quote
  #27  
Old April 19th, 2006, 06:24 PM
hauruapai hauruapai is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Aotearoa
Posts: 115 hauruapai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 17 m 32 sec
Reputation Power: 4
Red face oops...

apologies, I didn't understand properly... so I will try again!


Look for these lines of code and change the bits in red to your values.

Code:
'Construct SQL statement
strSQL = "SELECT x.countryID, x.countryName, y.cityID, y.cityName FROM tblCountry AS x INNER JOIN tblCity AS y ON x.countryID = y.countryID ORDER BY x.countryName, y.cityName;"


Leave the x and the y in place - x will be your first table and y will be your second table

Reply With Quote
  #28  
Old April 19th, 2006, 09:06 PM
webb webb is offline
Help and be helped
ASP Free Novice (500 - 999 posts)
 
Join Date: Feb 2004
Location: Australia
Posts: 545 webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level)webb User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 7 h 55 m 3 sec
Reputation Power: 67
i've done all that and it works very well.

I insert the data from the listboxes into another table called products.

Now when i want to update the data in the products table i need the listboxes to repopulate with the variables from my code and then say selected so i can see the values i chose earlier.

I have given the listboxes names from my variables cat_id and subcat_id. I know there's a way but i'm not up to it...

Any more ideas......i'm almost there

webb

Reply With Quote
  #29  
Old April 19th, 2006, 09:50 PM
hauruapai hauruapai is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Location: Aotearoa
Posts: 115 hauruapai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 8 h 17 m 32 sec
Reputation Power: 4
To advanced for me! *LOL*

Hopefully one of the guru's will help you - good luck

Reply With Quote
  #30  
Old April 20th, 2006, 06:36 PM
RMC RMC is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 7 RMC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 18 sec
Reputation Power: 0
Adding URL

Great example - worked first time! Quick question, being a newbie how do I add a param or the option to go to a specific url once you have made a selection from the populated list?

cheers,

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Dynamic dependant listboxes


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





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
Stay green...Green IT