.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 16th, 2003, 11:32 PM
dan77 dan77 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 1 dan77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
simple client server program

Hey

I am trying to make a simple client server program where i send a Username and Password from the client to the server. The server then uses this to get info from a db. My problem is that when i sent the Username and Password they get to the server as one bit of info not two separate ones.

For the client so far i have:

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
Dim Uname As String
Dim Pword As String

Uname = TxtUsername.Text
MC_Socket.SendData(Uname)
Pword = TxtPassword.Text
MC_Socket.SendData(Pword)

End Sub

the server:

Private Sub CS_Socket_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles CS_Socket.DataArrival

CS_Socket.GetData(TxtUsername.Text)
TxtUsername.Text = (TxtUsername.Text)

End Sub


I am using the same name for the text boxes on both programs. I want to send what ever is entered in the client username textbox to the server username textbox, and the same for the password.


Any help would be appreciated.

Dan

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > simple client server program


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT