Welcome to the Ifbyphone Developers zone. This forum provides a place for the community of advanced Ifbyphone users and developers to share ideas, exchange code, and ask questions.  

Additional Resources

Ifbyphone Company Blog - Ifbyphone Twitter Page - Ifbyphone Company Web Site - Ifbyphone Partners Page
Ifbyphone's CEO's (Irv Shapiro's) Personal Blog - Irv Shapiro Twitter Page

It has been brought to our attention that the NEW MEMBER link does not always display in IE7. If you do not see the new member link in the login box on the right, please try another browser. (Firefox works fine.) In addition please note that Phonemashup accounts are completely separate from Ifbyphone accounts.

If you need help fast, call 877 295 5100 to reach the Ifbyphone "Success Team".   (Support is option 2.)

Members Login
Username 
 
Password 
    Remember Me  
Chatbox
Please log in to join the chat!
Post Info TOPIC: How to handle errors


Member

Status: Offline
Posts: 20
Date: Jul 14, 2009
How to handle errors
  
 


Hi,str =

"https://secure.ifbyphone.com/click_to_xyz.php?app=cts&acct=XXX&scheduleonly&survo_id=ccc&key=dfgdg&type=2&sdate=" & StartDate & "&edate=" & EndDate & "&tz=Pacific&phone=" & csvfile & "&attempts=3&desc=Mydfgdfg" 

 

Dim hRequest As HttpWebRequest = WebRequest.Create(str)

 

Try

 

Dim resp As HttpWebResponse = hRequest.GetResponse() 

Dim sr AsNew StreamReader(resp.GetResponseStream()) 

Dim results AsString = sr.ReadToEnd()sr.Close()lblCallStatus.Visible =

True

lblCallStatus.Text = results

 

Catch ex As WebExceptionResponse.Write(

"<font color=red>Error<br />Status: " & ex.Status & "Message: " & ex.Message & "</font>") 

EndTry

in the above code i want to handle if there is any error dure csv file does not have write format or any erros records not found in .csv file etcc.
How to handle this.



__________________


Member

Status: Offline
Posts: 20
Date: Jul 14, 2009
  
 

For the above , i want to handle , like .csv does not have right format or number column missing or invalid column name etc..

Please let me know how to handle this in above code.

__________________


Veteran Member

Status: Offline
Posts: 45
Date: Jul 14, 2009
  
 

Please track: http://www.phonemashup.com/forum.spark?forumID=130002&p=3&topicID=29368179

__________________
-Phil Seguin
pseguin@ifbyphone.com
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Post to Facebook Post to Digg Post to Del.icio.us

This is an open and public forum so Ifbyphone is unable to ensure that all code and suggestions posted to this forum are correct. Please use all code posted here at your own risk. Ifbyphone assumes no liability for code, recommendations and suggestions posted to this forum.

Users and developers will find hundreds of useful posts at the Ifbyphone company blog.