473,387 Members | 1,882 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.

Please can someone help me

Hi Guys,

im a real newbie to asp.net vb infact im new to development but im gradually learning.

Ive built an app using visual studio 2005 asp.net vb and sql. The app searches local postoffices and displays them depending on the postcode or town or street. All works fine.

The server ill be deploying too does not have sql on it so im using an mdf file.

MY PROBLEM
I need to have a facility where the user can upload a csv file and it imports/overwrites current data in one particular table in the database. the site has user management and only admins can do this, (this is working too).

Ive read alot of stuff am im very confused, i just want a simple asp.net vb page that allows them to choose the file and it will upload straight into that table.

Can someone explain how to do this in plain english as im realy confused.

Thanks in advance
Dan
Feb 11 '07 #1
2 976
Im going to assume you have no problems with writing code to select/update/delete anything from the database.

If your not familiar with the uploadfile control check out this
FileUpload

Now the nest issue is parsing the csv file that you just uploaded and saved to the HD (or memory)

The best csv parser i have ever used is HERE
You can easily get how to use it and get the columns you want just be checking out the examples.

You then need to come up with a way to determine if you need to add/update the data in the database. Check if the cvs file has a column informing what action to take or if you need to query the db for an existing row and update that.
Feb 11 '07 #2
Im going to assume you have no problems with writing code to select/update/delete anything from the database.

If your not familiar with the uploadfile control check out this
FileUpload

Now the nest issue is parsing the csv file that you just uploaded and saved to the HD (or memory)

The best csv parser i have ever used is HERE
You can easily get how to use it and get the columns you want just be checking out the examples.

You then need to come up with a way to determine if you need to add/update the data in the database. Check if the cvs file has a column informing what action to take or if you need to query the db for an existing row and update that.
Thanks for your reply, ive come up with my own solution and posted some probs ive had with it in the asp.net forum, any help you could give would be great
Feb 14 '07 #3

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

Similar topics

16
by: Thomas G. Marshall | last post by:
This message is sent to these newsgroups because they are no longer valid: comp.lang.java comp.lang.java.api comp.lang.java.bugs comp.lang.java.misc comp.lang.java.setup comp.lang.java.tech
8
by: kittykat | last post by:
Hi, could someone please check my code? its asking the user to enter 3 letters, and check to see if these letters exist in the text file. i know ive done something wrong. can someone fix my code...
59
by: Alan Silver | last post by:
Hello, This is NOT a troll, it's a genuine question. Please read right through to see why. I have been using Vusual Basic and Classic ASP for some years, and have now started looking at...
0
by: Alan Silver | last post by:
Hello, I am having a problem setting and resetting cookies. I'm sure I just doing something really stupid as this is such a basic issue, but I can find any answer. Please can someone help me? ...
21
by: salad | last post by:
Thanks for reading this post and wasting your time. I was thinking about writing about the PCDatasheet vs The Pussyfarts war. The pussyfarts, as near as I can tell, have little to offer this...
19
by: sasan3 | last post by:
Every thread I start goes out on a tangent simply because some of you people are not reading my posts carefully: Here is the phrase I am proposing for inclusion in the FAQ: "to existing...
6
by: darren112 | last post by:
Hi Im new to python and I desperately need help with this task.... This is everything of what I need to do....... The program to be written in Python obviously...... The program should support...
1
by: Sean128 | last post by:
Hi, I hope someone can help me - this seems like it should be a really simple problem but I've been having trouble trying to solve it all week. I have hosted my website on a Linux server in 1...
1
by: Sean128 | last post by:
Hi, I hope someone can help me - this seems like it should be a really simple problem but I've been having trouble trying to solve it all week. I have hosted my website on a Linux server in 1...
6
by: fido19 | last post by:
Once upon a time, there lived a chimpanzee called Luycha Bandor (aka Playboy Chimp). Luycha was unhappily married to Bunty Mona, a short but cute little lady chimp. Luycha was tall and handsome –...
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: 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
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.