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 > writing values in textbox

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-09-04, 22:07
-Dman100- -Dman100- is offline
Registered User
 
Join Date: Jan 2004
Posts: 124
writing values in textbox

How can I add the array values into a form textbox in the script I'm working on? I want the array values to be in a text field so they can be edited. I want to use a stored procedure to update the array values.

<%
Response.Write "<table width=""700"" border=""1"">"
For x = 0 To TEST_MAX
Response.Write "<tr>"
Response.Write "<td>"
Response.Write TestList(0,x)
Response.Write "</td>"
Response.Write "<td>"
Response.Write TestList(1,x)
Response.Write "</td>"
Response.Write "<td>"
Response.Write TestList(2,x)
Response.Write "</td>"
Response.Write "<td>"
Response.Write TestList(3,x)
Response.Write "</td>"
Response.Write "</tr>"
Next
Response.Write "</table>"
%>
</table>

Thanks in advance for any help.
-Dman100-
Reply With Quote
  #2 (permalink)  
Old 11-10-04, 02:34
Deadbeef Deadbeef is offline
Registered User
 
Join Date: Nov 2004
Posts: 5
response.write "<input type=text name='field_' & x & " value=' & TestList(1,x) & "'>"

Deadbeef
(well that's one sample of what to do with variables in combination with text fields)
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