|
-
Jul 14th, 2008, 05:28 AM
#1
-
Jul 14th, 2008, 06:23 AM
#2
Re: Feedback form
The way it is usually done is to use ADO code, but late-bound as you cannot have References (or even proper data types - just Variants ).
If you do that, you can use normal ADO code (like in the "Classic VB - ADO" section of our Database Development FAQs/Tutorials), just leaving out the data types, using values instead of enums (eg: replace adOpenForwardOnly with the number it refers to, which may be 3), and changing any Set lines, eg:
Usual ADO:
Code:
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
late bound:
Code:
Set cn = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")
On top of that, you do not have controls as you normally would, so you need to use code to create the HTML equivalents (HTML forms reference).
-
Jul 15th, 2008, 02:40 AM
#3
Re: Feedback form
Awesome tutorial!!!
I have managed to create the web page (phew!!! It is so difficult in asp...) and now the difficult part...
Connecting it to a database...
I'll post the update...
Si: Rated
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jul 15th, 2008, 01:12 PM
#4
Re: Feedback form
W3Schools shows you how to use ADO with classic ASP.
http://www.w3schools.com/ado/ado_intro.asp
But si has shown you the main things you need to know. The rest is about creating your INSERT statements and executing them.
-
Jul 16th, 2008, 03:53 AM
#5
-
Jul 16th, 2008, 02:32 PM
#6
Re: Feedback form
Here's what I used to make it work
Code:
Dim conn
set conn=Server.CreateObject("ADODB.Connection")
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Documents and Settings\mendhak\Desktop\feedback\Hygienix.mdb;"
conn.ConnectionTimeout = 0
conn.Open
-
Jul 17th, 2008, 02:44 AM
#7
Re: Feedback form
Thanks Mendhak
I tried your code but still no errors and the database still doesn't get populated...
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jul 17th, 2008, 05:23 AM
#8
Lively Member
Re: Feedback form
hi
first collect the data from the textbox & combobox
eg. for data from textbox1, textbox2
use request object
v1=request.form("textbox1.text")
v2=request.form("textbox1.text")
using normal insert query insert the values in the table using v1, v2
-
Jul 17th, 2008, 12:35 PM
#9
Re: Feedback form
 Originally Posted by svibuk
hi
first collect the data from the textbox & combobox
eg. for data from textbox1, textbox2
use request object
v1=request.form("textbox1.text")
v2=request.form("textbox1.text")
using normal insert query insert the values in the table using v1, v2
Hi svibuk
Can you explain that a bit more... Refer to my 1st post ... you need to treat me like a noob...
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jul 18th, 2008, 08:38 AM
#10
Re: Feedback form
Okay!!!!
I managed to sort it out...
Thanks svibuk (rated )
besides that there was also an error it serverpath. Seems like it doesn't like paths like \\xyz\abc
Changed it to
conn.Open(Server.Mappath("Hygienix.mdb"))
and it ran smoothly
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|