Click here to Skip to main content
15,908,111 members
Home / Discussions / C#
   

C#

 
GeneralFile Copy from remote server Pin
Anonymous28-Jul-05 5:25
Anonymous28-Jul-05 5:25 
QuestionCalling a storerocedure from sybase? Pin
vlong7728-Jul-05 5:25
vlong7728-Jul-05 5:25 
GeneralLsaEnumerateLogonSessions... Pin
thilol28-Jul-05 5:22
thilol28-Jul-05 5:22 
GeneralFormat Decimal Value Pin
zaboboa28-Jul-05 5:20
zaboboa28-Jul-05 5:20 
GeneralRe: Format Decimal Value Pin
Guffa28-Jul-05 7:23
Guffa28-Jul-05 7:23 
GeneralRe: Format Decimal Value Pin
Alomgir Miah28-Jul-05 8:49
Alomgir Miah28-Jul-05 8:49 
GeneralXmlTextReader does not convert characters correctly Pin
kafros28-Jul-05 4:39
kafros28-Jul-05 4:39 
GeneralSocket question Pin
RoyRose7828-Jul-05 4:39
RoyRose7828-Jul-05 4:39 
Hey all,

I'm new to web app dev so I'll ask a simple question..
I created a simple chat application with client & server sockets.
after initialation & establishing the connection, I send text message to the server.
when I send the first message, the server gets it and displays it,
now, I realized that after the client sends the first message to the server, I need to reconnect to it again in order to send another message(s)..
The question is Do I need to reconnect to the server everytime, even though I have the server & client socket objects initialized...

my client code is like this:

private void btnSend_Click(object sender, System.EventArgs e)
{
btnConnect_Click(sender, e);//without this proc. I can send only 1 msg
try{
string msg = TxtSnd.Text+"<eof>";
byte[] byteData = Encoding.ASCII.GetBytes(msg);
lblstts.Text = "Sendeing...";//status label
clientMe.Send(byteData);
TxtSnd.Text = "";//delete text from TextBox
}catch(Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}
Generalsecurity for c# dll/assembly Pin
ppp00128-Jul-05 4:37
ppp00128-Jul-05 4:37 
GeneralRe: security for c# dll/assembly Pin
Dave Kreskowiak28-Jul-05 4:59
mveDave Kreskowiak28-Jul-05 4:59 
GeneralRe: security for c# dll/assembly Pin
Richard Deeming28-Jul-05 8:59
mveRichard Deeming28-Jul-05 8:59 
GeneralRe: security for c# dll/assembly Pin
Dave Kreskowiak28-Jul-05 10:35
mveDave Kreskowiak28-Jul-05 10:35 
GeneralDecimal Devision Pin
zaboboa28-Jul-05 4:06
zaboboa28-Jul-05 4:06 
GeneralRe: Decimal Devision Pin
Alomgir Miah28-Jul-05 4:17
Alomgir Miah28-Jul-05 4:17 
GeneralRe: Decimal Devision Pin
zaboboa28-Jul-05 4:51
zaboboa28-Jul-05 4:51 
GeneralDDE Pin
Member 197359428-Jul-05 0:38
Member 197359428-Jul-05 0:38 
GeneralHi,Please provide me documentation Pin
Member 251384828-Jul-05 0:35
Member 251384828-Jul-05 0:35 
GeneralRe: Hi,Please provide me documentation Pin
Dave Kreskowiak28-Jul-05 3:37
mveDave Kreskowiak28-Jul-05 3:37 
GeneralAdd a custom control in a tool bar Pin
Anonymous27-Jul-05 23:21
Anonymous27-Jul-05 23:21 
QuestionAbout ExecuteNonQuery ? Pin
papyrus_lei27-Jul-05 23:13
papyrus_lei27-Jul-05 23:13 
AnswerRe: About ExecuteNonQuery ? Pin
cshaaaa28-Jul-05 0:13
cshaaaa28-Jul-05 0:13 
GeneralRe: About ExecuteNonQuery ? Pin
papyrus_lei28-Jul-05 3:04
papyrus_lei28-Jul-05 3:04 
AnswerRe: About ExecuteNonQuery ? Pin
Anish Gopi28-Jul-05 2:48
sitebuilderAnish Gopi28-Jul-05 2:48 
GeneralRe: About ExecuteNonQuery ? Pin
papyrus_lei28-Jul-05 3:05
papyrus_lei28-Jul-05 3:05 
AnswerRe: About ExecuteNonQuery ? Pin
Anonymous28-Jul-05 2:49
Anonymous28-Jul-05 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.