I am using a webclient in C#.
returnValue = webclient.uploadstring(url, Message)
It works fine if the connection and all the other credentials are fine. But if any mistake in either the credentials or the connection, it waits for the webclient for at least 5 minutes to respond. I just want to set say 30 seconds for the command to get executed and if i dont get response abort it. How do I do so? is there a way?