If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > help with doing drill downs in asp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-01-03, 10:08
DaGr8Anil DaGr8Anil is offline
Registered User
 
Join Date: Sep 2003
Posts: 5
Unhappy help with doing drill downs in asp

hi.
I am Hi. I am creating a asp script that pulls records of an oracle database and displaying it as a table on an asp page. however what I want to do is display the records as links. for example.

record 1

(if record one is clicked)


record 1
information of another record from database 1
information another record from database 2
etc.


(and if record 1 is clicked again)

record 1





i really jus started learning asp and if anyone knows how to do that without any issues with client and server sides. i be very grateful. thank you
code included. (io txt form jus change extension to asp if needed)
Attached Files
File Type: txt da_dw_define_item.txt (3.6 KB, 61 views)
Reply With Quote
  #2 (permalink)  
Old 10-01-03, 10:30
Avatar Avatar is offline
Registered User
 
Join Date: Oct 2003
Location: Buenos Aires, Argentina
Posts: 20
Lightbulb Re: help with doing drill downs in asp

Hi:

Look.. the best way to make this it's to use the IDs from the records so when you link between pages can retrieve the record's information.
It's not an easy aproach, less for a beginner but I recomend to read books or documentation of ASP.
__________________
------------------------------------
Thanx
------------------------------------
http://www.iespana.es/greatavatar/FIRMA/firma.jpg
Reply With Quote
  #3 (permalink)  
Old 10-01-03, 19:18
bill_dev bill_dev is offline
Registered User
 
Join Date: Sep 2003
Posts: 60
Re: help with doing drill downs in asp

Looking at your code it looks like TableName+ColumnName would be your unique ID so when you render your link (probably the column_name column) you would want the link to call some javascript that saves the item they clicked on to a hidden field (stuff TABLE_NAME+"~"+COLUMN_NAME into a hidden field) then refresh the page.

When your page refreshes, check to see if the hidden field has a value. If so, make a function call to retrieve the detail data associated with that record and render it after the parent item (the record they clicked on) is rendered.

If the click the link a second time, clear out the hidden field if it's value matches the item that was clicked on and refresh.

HTH

Last edited by bill_dev; 10-01-03 at 19:21.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On