473,397 Members | 2,077 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.

ASP data entry implementation

Hello,
I need to write an ASP page that will allow a user to paste in
data from an Excel spreadsheet. The data will only be in one column. I'm
not a web programmer and would like some advice on the best way to do this.
I have a page working using a text area and some JavaScript to parse the
data entries using the split function. This seems to work ok but I wondered
if anyone could suggest a better way?

Many thanks
Jul 19 '05 #1
4 1365
Parse the data using server-side code? What do you not like the about the
way you're doing it? What are you looking to improve? What part are you
stuck on?

Ray at work

"Stephen Read" <St*********@NoSpam.com> wrote in message
news:c0**********@sparta.btinternet.com...
Hello,
I need to write an ASP page that will allow a user to paste in
data from an Excel spreadsheet. The data will only be in one column. I'm
not a web programmer and would like some advice on the best way to do this. I have a page working using a text area and some JavaScript to parse the
data entries using the split function. This seems to work ok but I wondered if anyone could suggest a better way?

Many thanks

Jul 19 '05 #2
It's not that I don't like it. It was just that I'm inexperienced in asp
and wanted to see if it could be done in a more elegant way.

Thanks,

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:ej**************@tk2msftngp13.phx.gbl...
Parse the data using server-side code? What do you not like the about the
way you're doing it? What are you looking to improve? What part are you
stuck on?

Ray at work

"Stephen Read" <St*********@NoSpam.com> wrote in message
news:c0**********@sparta.btinternet.com...
Hello,
I need to write an ASP page that will allow a user to paste
in
data from an Excel spreadsheet. The data will only be in one column.
I'm
not a web programmer and would like some advice on the best way to do

this.
I have a page working using a text area and some JavaScript to parse the
data entries using the split function. This seems to work ok but I

wondered
if anyone could suggest a better way?

Many thanks


Jul 19 '05 #3
Well, it's hard to say. There are ways to do it with server-side code. Is
it more elegant? That's open to interpretation, I'm sure. I personally,
generally speaking, use server-side code whenever I can in favor of relying
on client-side code that runs in an environment which I cannot control.

Ray at work

"Stephen Read" <St*********@NoSpam.com> wrote in message
news:c0**********@sparta.btinternet.com...
It's not that I don't like it. It was just that I'm inexperienced in asp
and wanted to see if it could be done in a more elegant way.

Thanks,

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:ej**************@tk2msftngp13.phx.gbl...
Parse the data using server-side code? What do you not like the about the way you're doing it? What are you looking to improve? What part are you stuck on?

Ray at work

"Stephen Read" <St*********@NoSpam.com> wrote in message
news:c0**********@sparta.btinternet.com...
Hello,
I need to write an ASP page that will allow a user to paste
in
data from an Excel spreadsheet. The data will only be in one column.
I'm
not a web programmer and would like some advice on the best way to do

this.
I have a page working using a text area and some JavaScript to parse the data entries using the split function. This seems to work ok but I

wondered
if anyone could suggest a better way?

Many thanks



Jul 19 '05 #4
You can connect to a csv file (which can be opened in Excel and which an
Excel file can be converted into) in good form just as you can to a
regular database.

And you can have two recordsets open at the same time.

So I'd suggest going through this recordset one row at a time and within
this loop add a new record to the "real" database's recordset.

And for help connecting to a text file using the Jet OLE DB provider:
http://www.able-consulting.com/MDAC/...roviders.htm#O
LEDBProviderForMicrosoftJetText

And based on the above link realize that the actual filename does NOT go
in the connection string - rather it goes in the SQL statement
(definitely a little tricky).

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #5

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

Similar topics

1
by: rzhu | last post by:
Hi, there I'm a beginer of STL and I have a question about the size of each map entry. I'm using STL on Linux for string search and reverse search. I'm using a multi_map for regular search (to...
24
by: Steven T. Hatton | last post by:
In the following code, at what point is S::c fully defined? #include <iostream> using std::cout; using std::endl; using std::ostream; class C { int _v;
2
by: yee young han | last post by:
I need a fast data structure and algorithm like below condition. (1) this data structure contain only 10,000 data entry. (2) data structure's one entry is like below typedef struct _DataEntry_...
1
by: Michael Gorbach | last post by:
Iv got a StatisticsContainer object that contains an arraylist of objects of different types, all inherited from class Statistic. The statistics class has 2 string public properties, name and...
3
by: Furty | last post by:
Hi, I'm looking for the best practice for creating a generic data validation implementation for my data bound business objects. I currently have a business object base class implementing the...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
6
by: pj | last post by:
Hi, I 'm currently writing a program that performs transliteration (i.e., converts greek text written using the english alphabet to "pure" greek text using the greek alphabet) as part of my...
5
by: Anan18 | last post by:
Hello sir, I'm supposed to Implement and Test the sequence Class Using a Fixed-Sized Array (Chapter 3), from Data Structures & Other objects using c++. The header file is provided, and so is a test...
1
by: Data Entry Outsourcing | last post by:
Data Entry plays vital role in every business area. Data Entry is one such aspects of any business that needs to be handled properly for expanding your business. Data Entry is one of the leading...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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.