473,846 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What is the difference between reponse.redirec t(strMessage) andwebClient.Do wnloaddata(strM essage)?

jmk
I'm trying to use an external SMS-service through .NET Framework 1.1
and using the webClient.Downl oadData(strMess age) 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.redirec t(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
1 1782
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*@larvikbank en.nowrote in message
news:59******** *************** ***********@x35 g2000hsb.google groups.com...
I'm trying to use an external SMS-service through .NET Framework 1.1
and using the webClient.Downl oadData(strMess age) 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.redirec t(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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2755
by: BigDadyWeaver | last post by:
I am using the following code in asp to define a unique and unpredictable record ID in Access. <% 'GENERATE UNIQUE ID Function genguid() Dim Guid guid = server.createobject("scriptlet.typelib").guid guid=Left(guid,instr(guid,"}")) genguid=guid
1
1459
by: dmiller23462 | last post by:
Does anyone see anything OUTRIGHT that I can fix on this....I'm a virgin ASP'er and I'm trying to produce an email from a form submission button....This is just my little "template" for future use (I have several pages that will require online submission) I'm not getting any emails and I'm not even getting the confirmation page that I defined....ANY HELP WOULD BE GREAT.... Thanks in advance
2
2431
by: Mark Creelman | last post by:
Hi: I am relatively new to ASP. I prefer Perl, but need to do this form to e-mail sipt for a web page, See Example of script below that works fine. I want to add the feature to this where it will tell customer that they missed a field, "click here" to go back & try again. Does not need to be fancy telling them which field they missed. (Although would be nice) Can even require all fields to be filled out, or do again. Currently it...
3
1268
by: Jack | last post by:
Hi, I have the following code as a part of authenticating a system. If Rs.eof Then Session("Authenticated") = 0 Response.Write "Sorry, your userid or password did not match" Response.Write "<BR>" Response.Write "or you have not registered yet. Please register" Response.Redirect("login.asp") Else Session("Authenticated") = 1
3
1639
by: trint | last post by:
Here is the "catch exception" message: "The requested lookup key was not found in any active activation context" Here is where it happens: public void DoRead(IAsyncResult ar) { int BytesRead; string strMessage;
1
8430
by: Edward | last post by:
I am having a terrible time getting anything useful out of a listbox on my web form. I am populating it with the results from Postcode lookup software, and it is showing the results fine. What I want to do is to allow the user to click on the row that corresponds to the correct address, and have the code behind populate the form's Address1, Address2 etc. controls with the relevant data items. I put the code for this into the...
8
1957
by: simon | last post by:
hello. hopefully another quick newbie question for you.... I have a codebehind function coded to handle the click event of a button. what this function does is insert values from a data grid into the database. after that is done i want to send the user to PageC, but before i do that i check a variable value. if that value is "0" then i want to raise a javascript alert telling the user they need to set some info in PageA and then...
19
10222
by: furiousmojo | last post by:
This is a strange problem. I have a project where the contents of global.asax application_error are not firing. It is an asp.net 2.0 application using web application projects. I have another app using web application projects and it's firing fine but it was upgraded from the 1.1 framework. Why doesn't my global.asax application_error routine fire?
0
1384
by: Mangler | last post by:
I have a form that does multiple updates on the page. For some reason that I cant figure out it is redirecting before the update is done. It doesnt do this on another page that I have. <% If Request("Submit") <"" Then intRecIDs = Replace(Request("hidRecIDs"), "*", "") ' remove all the asterisks, to create a list like this: 2, 5, 8, 9 etc. arrRecIDs = Split(intRecIDs, ", ") ' Create an array, wich will contain just the IDs of the...
0
9725
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10640
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10705
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9477
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7877
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7050
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.