473,513 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# Send database through network

8 New Member
Hey,

I've got one program (connected with other via TCP) that sends through the following:

Expand|Select|Wrap|Line Numbers
  1. string[] namen;
I add some values to it and then finally I send it through as followed:

Expand|Select|Wrap|Line Numbers
  1. strWriter.Write("NAM" + namen);
The other program reconigses the code 'NAM' and runs it through my switch which does the following:

Expand|Select|Wrap|Line Numbers
  1. string[] ontvangennaam = data.Substring(3, data.Length - 3);
  2. foreach (string n in ontvangennaam)
  3. {
  4.        MessageBox.Show(n);
  5. }
Sadly enough this doesn't work. How come? Does anyone know? Eventually I will add each received 'naam' to an arraylist.

Thank you
Jun 11 '07 #1
0 651

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

Similar topics

2
3018
by: Danny J. Lesandrini | last post by:
Our orders database exists inside our firewall but we have a web site hosted on an ISP server. If we wanted to give users the ability to query the status of their order in real time, we could just...
4
9631
by: Anne | last post by:
hi ng I would like to make a database where the user automatically can send a short message service (SMS) just by pressing a button. I know how to do it if it is an email (by using the...
1
2883
by: Amadej | last post by:
Hello everyone, I'm having some odd problems with a little program I wrote for sending/receiving bytes across the network. I am using synchronous sockets, and it seems that when I send byte...
4
2467
by: Dixie | last post by:
I want to send a file to each persons home network space. I believe that when a person logs onto a network, some sort of variable is set that identifies the user. Is there any code that would...
1
1275
by: Lizz | last post by:
I have a page which i need sent via email when user hits submit button here is an example of the CDo code i'm using which is not working. Please help <% Dim objMessage Set objMessage =...
20
5357
by: newbie | last post by:
Hi all, http://www.aswin.be/nictransfer.JPG How can I get these numbers with VB.NET ? I thought somewhere in WMI but I can't find them. Thank you, Aswin
17
4867
by: shineofleo | last post by:
Here is the situation: I wrote a VB programm, which stores all the information in a single Access database file using jet engine. It worked well, however one of my customs reported that there was...
8
7265
by: shapper | last post by:
Hello, I am trying to send an email using Asp.Net 2.0. I am getting the following error: System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: No such...
2
1873
by: =?Utf-8?B?Y2hpZWtv?= | last post by:
Hello, I have Asp.net 2.0 app that needs to send an email. It works fine when the app tries to send inside of the network, but I can’t send email outside. Does anyone know how I can resolve...
0
1214
by: thesti | last post by:
hi, need some help on network programming. i'm new to network programming. i need to make a program that sends a signal/message to every other hosts in the same network that also run the same...
0
7166
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
7543
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
7106
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
7534
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
5689
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
3226
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1601
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
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
459
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.