Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Create tables with vbscript.

Reply
 
Old 03-19-2009   #1 (permalink)
Yasmin


 
 

Create tables with vbscript.

I am new to vbscript (asp coding), I come from a php world and am learning lots.
I need to create a table of Labesl/Radio Buttons dynamically from a db table.

The data would look like this:

RecNo fruit_text1(nvarchar) fruit_choice2(bit) fruit_text2(nvarchar) fruit_choice2(bit)
1 apple 0 orange 1
2 grapes 1 melon 0

and so on.

What I need to do is to display the table data with the TEXTx as the Label and ChoiceX as the Radio button value.

I think I should also say that the data is in pairs. By this I mean RecNo1 data is displayed in the same TR as a pair, so that when a user clicks on Apple, Orange is deselected etc.

I've tried to convert some PHP code, but am just not well versed enuff in vbscript for asp pages.

Thanks.



My System SpecsSystem Spec
Old 03-20-2009   #2 (permalink)
Hz


 
 

Re: Create tables with vbscript.

Weird naming. If you're only storing fruit data, why do you need to name
every column fruit_? And RecNo? There are no records in a database, only
rows. It isn't a sequential text file:-)

For your question, try this link. It's a great site that helped me a lot:
http://classicasp.aspfaq.com/general...-from-asp.html

--
..::[ Hz ]::.
My System SpecsSystem Spec
Old 03-21-2009   #3 (permalink)
Joe Fawcett


 
 

Re: Create tables with vbscript.


"Yasmin" <yasmin@xxxxxx> wrote in message
news:u8A1aBLqJHA.5880@xxxxxx
Quote:

> I am new to vbscript (asp coding), I come from a php world and am learning
> lots.
> I need to create a table of Labesl/Radio Buttons dynamically from a db
> table.
>
> The data would look like this:
>
> RecNo fruit_text1(nvarchar) fruit_choice2(bit) fruit_text2(nvarchar)
> fruit_choice2(bit)
> 1 apple 0 orange
> 1
> 2 grapes 1 melon
> 0
>
> and so on.
>
> What I need to do is to display the table data with the TEXTx as the Label
> and ChoiceX as the Radio button value.
>
> I think I should also say that the data is in pairs. By this I mean RecNo1
> data is displayed in the same TR as a pair, so that when a user clicks on
> Apple, Orange is deselected etc.
>
> I've tried to convert some PHP code, but am just not well versed enuff in
> vbscript for asp pages.
>
> Thanks.
>
>
So where are you at the moment?
Have you read the table (using adodb)?
Have you iterated through the rows?
Have you created the required markup?

What I'm really asking is which part of this are you stuck on?

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

My System SpecsSystem Spec
Old 03-23-2009   #4 (permalink)
Yasmin


 
 

[Resolved]Re: Create tables with vbscript.

Found a solution.

"Yasmin" <yasmin@xxxxxx> wrote in message news:u8A1aBLqJHA.5880@xxxxxx
I am new to vbscript (asp coding), I come from a php world and am learning lots.
I need to create a table of Labesl/Radio Buttons dynamically from a db table.

The data would look like this:

RecNo fruit_text1(nvarchar) fruit_choice2(bit) fruit_text2(nvarchar) fruit_choice2(bit)
1 apple 0 orange 1
2 grapes 1 melon 0

and so on.

What I need to do is to display the table data with the TEXTx as the Label and ChoiceX as the Radio button value.

I think I should also say that the data is in pairs. By this I mean RecNo1 data is displayed in the same TR as a pair, so that when a user clicks on Apple, Orange is deselected etc.

I've tried to convert some PHP code, but am just not well versed enuff in vbscript for asp pages.

Thanks.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
how to create a tunnel vpn with vbscript? VB Script
Create vbscript to empty secure temp folder when exiting Outlook. VB Script
vbscript AD and who create account VB Script
how to create checkbox using vbscript VB Script
vbscript to create file Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46