473,397 Members | 2,084 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,397 software developers and data experts.

textbox and array

I have a multi-line textbox in a classic ASP web page.

Each line looks something like this
1,Joe
2,Jane
3,Bob

Is it possible to use classic ASP to extract each line and store it in
an array? I want to perform an INSERT into an Access table for each
line. I see solutions for ASP.NET but not for classic asp.

thanks!
Dec 27 '07 #1
3 4471
lo*****@gmail.com wrote:
I have a multi-line textbox in a classic ASP web page.
multiline?
Do you mean a textarea? You'd better show us the html for this textbox
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Dec 27 '07 #2
On Dec 27, 10:07 am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
loc2...@gmail.com wrote:
I have a multi-line textbox in a classic ASP web page.

multiline?
Do you mean a textarea? You'd better show us the html for this textbox
I apologize for that. Yes, it's a textarea.

Dec 27 '07 #3
On Dec 27, 2:23 pm, loc2...@gmail.com wrote:
On Dec 27, 10:07 am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
loc2...@gmail.com wrote:
I have a multi-line textbox in a classic ASP web page.
multiline?
Do you mean a textarea? You'd better show us the html for this textbox

I apologize for that. Yes, it's a textarea.
Got if figured out. Here is the gist of the code I was looking for

<%
if request.form("students") <"" then
strStu = Request.Form("students")
arrStu = Split(strstu,vbCrLf)
For intstu = 0 To UBound(arrstu)
arrstu2 = Split(arrstu(intstu),",")
'Response.Write arrstu2(0) & "|" & arrstu2(1)
'construct INSERT SQL
'response.write "<br />"
Next
end if
%>
Dec 28 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Briand | last post by:
How do I create an array of Textbox at runtime?
2
by: marmot101 | last post by:
Hi, All, I create an array of TextBox and add them to a windows form by program. It works fine. However, whenever I open the form, the text in first TextBox is always SELECTED, how can I stop...
2
by: Eric Diana | last post by:
Hello, Im trying to create a dynamic array of textboxes from an array returned by a web service. THe web service returns a list of fields that I need to place on a dynamically created web page....
3
by: barbara | last post by:
Hi all, I need to use hundreds of textboxes to display data. In VB 6.0, I can assign the value by the loop with a textboxes array. How to do it in VB.net? Thanks a lot.
3
by: Newcomsas | last post by:
Hello, I'm trying to solve a problem with JS textbox array without success. I have two buttons in my page: PLUS and MINUS; at every click on PLUS a new textbox named 'dear' is generated. So, if...
0
by: lithuanin | last post by:
Hi! I have an array of textbox. It has aproximatly 50 textboxs. When I for example want to move them(resize them, whatever) them all it takes about 1-2 seconds (not under Visual Studio, but...
0
by: G | last post by:
Hello friend, I am using a textbox with in a forloop, for each time when i click a button it genarates a new textbox, so for example for first time there will be 1 textbox, i will enter some...
1
by: seadog | last post by:
Hi, I am having a problem displaying data in a textbox array. What I am trying to do is have 5 number enter 5 textboxes, starting from the first and working there way to the bottom textbox. What...
2
by: emredagli | last post by:
Hello, I write following code in ASP.NET, .... public static TextBox textler = new TextBox; public static int objectindis = 0; ... for (objectindis = 0; i < total;...
9
by: Jetean | last post by:
Hi: I wrote this code: Class Manager private TextBox aTextbox = new TextBox; private string sD = new string; public SerialManager() { for (int k = 0; k <...
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.