Click here to Skip to main content
15,907,183 members
Home / Discussions / C#
   

C#

 
QuestionPreventing DOM based XSS Script PROBLEM -with details- Pin
computer_programmer120-Sep-13 8:05
computer_programmer120-Sep-13 8:05 
AnswerRe: Preventing DOM based XSS Script PROBLEM -with details- Pin
Keld Ølykke23-Sep-13 19:59
Keld Ølykke23-Sep-13 19:59 
Questioncheck box in repeater Pin
ravitejsrivastava20-Sep-13 6:32
ravitejsrivastava20-Sep-13 6:32 
AnswerRe: check box in repeater Pin
NotPolitcallyCorrect20-Sep-13 7:36
NotPolitcallyCorrect20-Sep-13 7:36 
QuestionLooking for help in querying web page values with C sharp Pin
turbosupramk320-Sep-13 5:28
turbosupramk320-Sep-13 5:28 
AnswerRe: Looking for help in querying web page values with C sharp Pin
turbosupramk323-Sep-13 2:55
turbosupramk323-Sep-13 2:55 
QuestionDetect a particular color in particular location from image in c# Pin
Member 402509119-Sep-13 22:20
Member 402509119-Sep-13 22:20 
AnswerRe: Detect a particular color in particular location from image in c# Pin
Richard MacCutchan20-Sep-13 1:54
mveRichard MacCutchan20-Sep-13 1:54 
AnswerRe: Detect a particular color in particular location from image in c# Pin
Abhinav S20-Sep-13 3:16
Abhinav S20-Sep-13 3:16 
AnswerRe: Detect a particular color in particular location from image in c# Pin
BillWoodruff20-Sep-13 7:46
professionalBillWoodruff20-Sep-13 7:46 
GeneralRe: Detect a particular color in particular location from image in c# Pin
shehrozeee22-Sep-13 0:17
shehrozeee22-Sep-13 0:17 
GeneralRe: Detect a particular color in particular location from image in c# Pin
Dave Kreskowiak22-Sep-13 3:34
mveDave Kreskowiak22-Sep-13 3:34 
Questionhow to use thread in for loop in c# Pin
superselector19-Sep-13 20:00
superselector19-Sep-13 20:00 
AnswerRe: how to use thread in for loop in c# Pin
Mycroft Holmes19-Sep-13 21:06
professionalMycroft Holmes19-Sep-13 21:06 
GeneralRe: how to use thread in for loop in c# Pin
superselector19-Sep-13 21:50
superselector19-Sep-13 21:50 
GeneralRe: how to use thread in for loop in c# Pin
GuyThiebaut19-Sep-13 22:20
professionalGuyThiebaut19-Sep-13 22:20 
GeneralRe: how to use thread in for loop in c# Pin
superselector19-Sep-13 23:08
superselector19-Sep-13 23:08 
GeneralRe: how to use thread in for loop in c# Pin
GuyThiebaut19-Sep-13 23:13
professionalGuyThiebaut19-Sep-13 23:13 
GeneralRe: how to use thread in for loop in c# Pin
Pete O'Hanlon19-Sep-13 22:34
mvePete O'Hanlon19-Sep-13 22:34 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot19-Sep-13 23:58
harold aptroot19-Sep-13 23:58 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 18:51
superselector23-Sep-13 18:51 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 21:08
harold aptroot23-Sep-13 21:08 
Ok, it's a little tricky.

The simplest way, not very good is: make one thread for every ping action, start them all, then Join them all. Is that good enough for you?

Otherwise, use ping.SendAsync, and make very sure that PingCompletedEventHandler is thread-safe. The handler will have to 1) save the result (safely! may involve locking) and 2) signal a waithandle (after saving the result). Then you can do a WaitAll over all the waithandles to continue when all the pings are done.
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 21:24
superselector23-Sep-13 21:24 
GeneralRe: how to use thread in for loop in c# Pin
harold aptroot23-Sep-13 21:28
harold aptroot23-Sep-13 21:28 
GeneralRe: how to use thread in for loop in c# Pin
superselector23-Sep-13 22:31
superselector23-Sep-13 22:31 

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.