Click here to Skip to main content
15,927,347 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to disable button_click event in asp.net ? Pin
Netricity20-Dec-06 11:24
Netricity20-Dec-06 11:24 
QuestionInvoking a function from a schedular Pin
BraveShogun20-Dec-06 6:00
BraveShogun20-Dec-06 6:00 
QuestionSettings Problem Pin
dsl/fahk20-Dec-06 5:28
dsl/fahk20-Dec-06 5:28 
AnswerRe: Settings Problem Pin
dsl/fahk20-Dec-06 6:34
dsl/fahk20-Dec-06 6:34 
QuestionPls Help! How to reference the dynamically generate textbox ID Pin
MyRunner20-Dec-06 5:05
MyRunner20-Dec-06 5:05 
AnswerRe: Pls Help! How to reference the dynamically generate textbox ID Pin
Rob Graham20-Dec-06 5:56
Rob Graham20-Dec-06 5:56 
GeneralRe: Pls Help! How to reference the dynamically generate textbox ID Pin
Guffa20-Dec-06 6:24
Guffa20-Dec-06 6:24 
QuestionSocket listening Pin
choopie20-Dec-06 2:59
choopie20-Dec-06 2:59 
I want to listen ip host with a specified port number. But not local ip address. I've tried to do it using three classes IPEndPoint, Socket, NetworkStream, but I couldn't see any data (in a MessageBox for example). I use:

private static string connectSocket(string address, int port)
{
//address = "10.0.105.4";
//port = 4000;
String data = null;
try
{
Byte[] bytes = new Byte[256];
IPEndPoint endPoint = new IPEndPoint(IPAddress.Parse(address), port);
Socket socket = new Socket(endPoint.AddressFamily,
SocketType.Stream, ProtocolType.Tcp);
socket.Connect(endPoint);
NetworkStream ns = new NetworkStream(socket);
Int32 i;
while((i = ns.Read(bytes, 0, bytes.Length)) != 0)
{
data = System.Text.Encoding.ASCII.GetString(bytes, 0, i);
}
return data
}

Does anyone know how to solve this?

AnswerRe: Socket listening Pin
Eitsop20-Dec-06 4:14
Eitsop20-Dec-06 4:14 
GeneralRe: Socket listening Pin
choopie20-Dec-06 6:04
choopie20-Dec-06 6:04 
Questiongetting the checked items Pin
quiteSmart20-Dec-06 2:37
quiteSmart20-Dec-06 2:37 
AnswerRe: getting the checked items Pin
Stefan Troschuetz20-Dec-06 2:53
Stefan Troschuetz20-Dec-06 2:53 
QuestionDelegate And Event Pin
ronivars20-Dec-06 2:31
ronivars20-Dec-06 2:31 
AnswerRe: Delegate And Event Pin
Tristan Rhodes20-Dec-06 5:35
Tristan Rhodes20-Dec-06 5:35 
GeneralRe: Delegate And Event Pin
ronivars20-Dec-06 21:41
ronivars20-Dec-06 21:41 
GeneralRe: Delegate And Event Pin
ronivars20-Dec-06 21:50
ronivars20-Dec-06 21:50 
QuestionHow to Sort HtmlElementCollection Pin
zaboboa20-Dec-06 2:27
zaboboa20-Dec-06 2:27 
AnswerRe: How to Sort HtmlElementCollection Pin
Stefan Troschuetz20-Dec-06 3:00
Stefan Troschuetz20-Dec-06 3:00 
AnswerRe: How to Sort HtmlElementCollection Pin
Ravi Bhavnani20-Dec-06 3:57
professionalRavi Bhavnani20-Dec-06 3:57 
QuestionPlaying a sound using Media.Soundplayer() Pin
QzRz20-Dec-06 2:04
QzRz20-Dec-06 2:04 
QuestionInternationalize the application Pin
AcDev720-Dec-06 2:03
AcDev720-Dec-06 2:03 
AnswerRe: Internationalize the application Pin
Netricity20-Dec-06 11:40
Netricity20-Dec-06 11:40 
QuestionFinding controls inside a region ? Pin
kkadir20-Dec-06 1:51
kkadir20-Dec-06 1:51 
Questionuploaf files using desktop applications Pin
Mridang Agarwalla20-Dec-06 1:15
Mridang Agarwalla20-Dec-06 1:15 
AnswerRe: uploaf files using desktop applications Pin
Eitsop20-Dec-06 2:37
Eitsop20-Dec-06 2:37 

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.