473,508 Members | 2,509 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom data import to SQL via web form

Hi guys,
Here's a problem:

My customer needs a way to import small Excel/Access-files of data into
their SQL Server. The data files all contains the same type of data; email
address, first name, last name and such basic contact information.

Now, if the data files to import would have the same field names as the ones
in the SQL Server database, this would not be a problem. But now they
differs. One file may have Swedish field names and another may have English.
How should I let the user decide which source field to be matched with the
destination?

I have the following:
I created a repeater that lists all available field names from the source
data file in the left column. The right column contains a dropdownlist of
all available destination field names for each source field. But how should
I then know what the user chose??

dt = ....

rptSourceFields.DataSource = dt.Columns
rptSourceFields.DataBind()
.....
<asp:Repeater ID="rptSourceFields" runat="server">
<itemtemplate>
<tr>
<td width="70"><%# Container.DataItem.ColumnName %></td>
<td width="15">&raquo;</td>
<td><asp:dropdownlist AutoPostBack="false" ID="mnuDestinationFields"
runat="server" /></td>
</tr>
</itemtemplate>
</asp:Repeater>

How should I do this? Am I doing it all wrong?
Thanks for any kind of help!

Best regards,
Jonah Olsson
Nov 17 '05 #1
0 797

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

Similar topics

1
8199
by: KS | last post by:
Hi, I have creatd a custom Outlook form with a few custom form fields. When completed the form is sent to me and goes into my Inbox. This works fine. Now Iam trying to write some code in...
0
892
by: Jonah Olsson | last post by:
Hi guys, Here's a problem: My customer needs a way to import small Excel/Access-files of data into their SQL Server. The data files all contains the same type of data; email address, first...
21
2066
by: One Handed Man \( OHM - Terry Burns \) | last post by:
When using a custom control. In order to check and see if values have changed one has to implement the IPostBackDataCollection interface. The values returned for the control seem to be simply a...
2
2565
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
3
1616
by: stevong | last post by:
Hi, I've a custom user control: 'user1.ascx <script language="VB" runat="server"> Public str1 as string Dim conn as System.Data.SqlClient ' But this line hits and error. What should I do?
0
1330
by: J. Cliff Dyer | last post by:
On Wed, 2008-04-30 at 11:02 -0500, Victor Subervi wrote: Victor, Once again, you've posted code that doesn't work. Your outer try block is never terminated, and w is never initialized (so...
0
870
by: J. Cliff Dyer | last post by:
On Thu, 2008-05-08 at 10:33 -0500, Victor Subervi wrote: Why are you dynamically creating getpic20.py? Obviously, in the real script, you probably have several of them: getpic1.py, getpic2.py,...
4
2838
by: Jimmy | last post by:
hi, all I'm having a problem with creating custom events in wxpython. I have a class A handling some data processing work and another class B of GUI matter. I need GUI to display information...
2
19404
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
2897
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
7133
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
7336
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
7405
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...
1
5059
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...
0
4724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.