473,387 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

display all data row with element(loops)

guys i have some probs..
for asp.net you don't have to worried about data from database which more than 1 row to display..
but in asp... got any clues what to do?
is't i have to
Expand|Select|Wrap|Line Numbers
  1. dim x
  2. x=0
  3. Response.Write "<input type="text" id='temp"& x &"' value='rs(data)'>"
is't like that?
Oct 26 '08 #1
3 1724
GazMathias
228 Expert 128KB
guys i have some probs..
for asp.net you don't have to worried about data from database which more than 1 row to display..
but in asp... got any clues what to do?
is't i have to
Expand|Select|Wrap|Line Numbers
  1. dim x
  2. x=0
  3. Response.Write "<input type="text" id='temp"& x &"' value='rs(data)'>"
is't like that?
Expand|Select|Wrap|Line Numbers
  1. <% 
  2. DO WHILE NOT rs.EOF %>
  3. <outut your row>
  4. <% rs.Move Next
  5. Loop 
  6. %>
Oct 26 '08 #2
Expand|Select|Wrap|Line Numbers
  1. <% 
  2. DO WHILE NOT rs.EOF %>
  3. <outut your row>
  4. <% rs.Move Next
  5. Loop 
  6. %>
what i mean is ...
to loop the data from database with html element
like texttbox,textarea and etc
Oct 28 '08 #3
GazMathias
228 Expert 128KB
what i mean is ...
to loop the data from database with html element
like texttbox,textarea and etc
Yes, that is what I am illustrating. Put your html markup in the <Output your row> part.

Example with this statement behind it:

"SELECT txtName, txtCompany FROM tblCartoonCharacters"

Expand|Select|Wrap|Line Numbers
  1. <table>
  2. <% DO WHILE NOT rs.EOF %>
  3. <tr>
  4.     <td><%=rs("txtName")%></td>
  5.     <td><%=rs("txtCompany")%></td>
  6. </tr>
  7. <% rs.Move Next
  8. Loop %>
  9. </table>
Will Output

Donald Duck | Disney
Mickey Mouse | Disney
Homer Simpson | Fox
Elmer Fudd | Warner

Etc
Oct 28 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Kay | last post by:
This function is used to display the context of a queue. I input an integer comparing with the queue cuisine number, if cuisine number is same as the input, it shows the context. However, it cannot...
8
by: ml | last post by:
My employers currently use Access for processing large volumes of data for reporting and simple modelling, which involves a lot of make table/update queries etc. I have been asked to work on a...
46
by: Neptune | last post by:
Hello. I am working my way through Zhang's "Teach yourself C in 24 hrs (2e)" (Sam's series), and for nested loops, he writes (p116) "It's often necessary to create a loop even when you are...
4
by: Troy | last post by:
Hello all, I was wondering if there is a way to speed up the rendering of a web page to the client browser... In my case, I am retrieving about 60 - 100 rows of data from an SQL Server and I...
3
by: Levi Campbell | last post by:
Hi, I'm trying to debug an app someone else wrote called eMixer. Here's the log contents: cc -O3 -funroll-loops -c -o main.o main.c cc -O3 -funroll-loops -c -o nctgui.o nctgui.c cc -O3...
3
by: tzuriel | last post by:
Hello all, I think nested loops will do what I want, but I can't seem to get them right. I have two tables, members and casts. I run a query as follows: $sql_query="SELECT DISTINCT...
8
by: brainflakes.org | last post by:
Hi guys, I need to manipulate binary data (8 bit) stored in a 2 dimensional array. I've tried various methods (arrays, using a string filled with chr(0), using gd lib) and so far the fastest...
4
by: danbuttercup | last post by:
Hi everyone I just recently learnt how to do while loops in my java class and I am completely lost. I have to make programs for the following questions but I have no idea were to start. ...
1
by: =?ISO-8859-1?Q?Christian_R=FChl?= | last post by:
hi @all! i have a little problem with xsd. is it possible to define a loop in a schema? the xml files i want to validate look like this: - product -- component --- sub-component
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.