This is a discussion on "Importing RecordSet to .asp file" within the Classic ASP section. This forum, and the thread "Importing RecordSet to .asp file are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Importing RecordSet to .asp file
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Importing RecordSet to .asp file
Hello !
I need a bit of big help please I have the site http://www.easytraveller.gr where i have .asp files like http://www.easytraveller.gr/acropole_delphi.asp . In the asp file I import dynamically the dates, nights and number of persons from an access db. I have created a recordset that brings back the contents of the table that shows the room types the periods and the rates, but I do not know how to import this recordset dynamical in the file. If I create a list/menu box that shows only one line. Where and how I can import this recordset or is there another way? Regards Tolis |
|
|
|
|||
|
Re: Importing RecordSet to .asp file
|
|
|||
|
Re: Importing RecordSet to .asp file
Sorry Sam
I am a little confused the recordset with the information is rsHerodionRates Where in the code
Regards Tolis Last edited by Rob; Nov 19th, 2005 at 13:20. Reason: PLEASE USE CODE TAGS!!!! [code]your code here[/code] |
|
|||
|
Re: Importing RecordSet to .asp file
|
|
|||
|
Re: Importing RecordSet to .asp file
keep earning them brownie points ben!
|
|
|||
|
Re: Importing RecordSet to .asp file
did i earn one just then? lol
|
|
||||
|
Re: Importing RecordSet to .asp file
NO!!! hahaha...
But to get back on topic.... Tolis, I think you'll find Benbramz code will suffice! PS... rememeber to use code tags.. eg. [code]your code here[/code]
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: Importing RecordSet to .asp file
Hello everybody
Your help is very usefull Must be my mistake becasue I did not say that the ercordset to be inserted was a whole table. So following your instructions was getting Microsoft Jet database error I finaly found the solution. Using the Dreamweaver went Insert>Application Objects>Dynamic Data>Dynamic Table and here I gave the Recordset. Now is working perfet and you can check it at http://easytraveller.gr/herodion_athens.asp Thank you again Tolis |
|
|||
|
Re: Importing RecordSet to .asp file
I forgot to put the code
<% Dim rsHerodionRates Dim rsHerodionRates_numRows Set rsHerodionRates = Server.CreateObject("ADODB.Recordset") rsHerodionRates.ActiveConnection = MM_Connection1_STRING rsHerodionRates.Source = "SELECT Room, PERIOD1, PERIOD2, PERIOD3, PERIOD4 FROM herodion" rsHerodionRates.CursorType = 0 rsHerodionRates.CursorLocation = 2 rsHerodionRates.LockType = 1 rsHerodionRates.Open() rsHerodionRates_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = -1 Repeat1__index = 0 rsHerodionRates_numRows = rsHerodionRates_numRows + Repeat1__numRows %> Bye Tolis |
![]() |
| Tags |
| importing, recordset, asp, file |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| recordset/table display | Eclipse414 | Web Page Design | 4 | Dec 25th, 2005 21:02 |
| ADODB.Recordset error '800a0bb9' | grittyminder | Databases | 2 | Jul 15th, 2005 21:09 |
| importing txt file to SQL with recordset | EnvY | Classic ASP | 21 | Mar 28th, 2005 11:22 |
| passing recordset to next page? | Monie | Classic ASP | 1 | Sep 25th, 2004 07:53 |
| recordset constants (data types) | spinal007 | Classic ASP | 6 | Sep 19th, 2004 07:39 |