By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,222 Members | 1,310 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,222 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Sep 2 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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! |
********************************************
<jm*@larvikbanken.nowrote in message
news:59**********************************@x35g2000 hsb.googlegroups.com...
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

Sep 2 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.