What is the difference between reponse.redirect(strMessage) andwebClient.Downloaddata(strMessage)?

  • Thread starter Thread starter jmk
  • Start date Start date
J

jmk

I'm trying to use an external SMS-service through .NET Framework 1.1
and using the webClient.DownloadData(strMessage) method. The
strMessage is a string consisting the parameters to send a message,
and the return-value to the DownloadData method is to be a status
code
for the requested message. However, using this method causes a
connection-timeout from the SMS-service. Sending the same strMessage
using reponse.redirect(strMessage) sends the message as exected and
displays the status code in the browser-window. What is the
difference
between these two methods regarding the request to the SMS-service?
Is
there som change in the request that causes the timeout, or am I
using
the downloadData method wrong?

regards,
John Martin
 
I am not sure what hte difference is between the methods you are asking
about and not sure if I have the time to look it up any time soon. I would
have to see code to get a better idea of what you are doing, as well.

You will most likely want to go with an asynchronous call to the SMS service
rather than synchronous. This will get you past the timeout issue no matter
what you use to return messages.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
Back
Top