Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting 403 (Forbidden) from HttpWebRequest Pin
Keith Barrow20-Aug-13 3:56
professionalKeith Barrow20-Aug-13 3:56 
GeneralRe: Getting 403 (Forbidden) from HttpWebRequest Pin
harold aptroot20-Aug-13 4:10
harold aptroot20-Aug-13 4:10 
Questionthreading in c# Pin
Member 1022020019-Aug-13 23:31
Member 1022020019-Aug-13 23:31 
AnswerRe: threading in c# Pin
Pete O'Hanlon20-Aug-13 0:01
mvePete O'Hanlon20-Aug-13 0:01 
SuggestionRe: threading in c# Pin
Ahsan9820-Aug-13 0:20
Ahsan9820-Aug-13 0:20 
SuggestionRe: threading in c# Pin
Ahsan9820-Aug-13 0:31
Ahsan9820-Aug-13 0:31 
GeneralRe: threading in c# Pin
Eddy Vluggen20-Aug-13 0:46
professionalEddy Vluggen20-Aug-13 0:46 
GeneralRe: threading in c# Pin
BillWoodruff20-Aug-13 15:08
professionalBillWoodruff20-Aug-13 15:08 
AnswerRe: threading in c# Pin
Ravi Bhavnani21-Aug-13 7:42
professionalRavi Bhavnani21-Aug-13 7:42 
QuestionWindowsApp and Website Share One Database Pin
ali_heidari_19-Aug-13 23:15
ali_heidari_19-Aug-13 23:15 
AnswerRe: WindowsApp and Website Share One Database Pin
Eddy Vluggen20-Aug-13 0:50
professionalEddy Vluggen20-Aug-13 0:50 
GeneralRe: WindowsApp and Website Share One Database Pin
ali_heidari_21-Aug-13 23:17
ali_heidari_21-Aug-13 23:17 
AnswerRe: WindowsApp and Website Share One Database Pin
SaqibRasheed20-Aug-13 12:37
SaqibRasheed20-Aug-13 12:37 
Web-service approach will be more safe, and flexible; so, I don't think you should think about any other option when there are web-services.

That is good thing that you are keeping such issues (like internet connection lost) in mind while working on your application.
A better way could be to do a proper exception handling while connecting to the web-service as well as while calling methods of the web-service. If you are not connected, or some of the method has not returned the expected results this means something wrong happened. In that case you should keep backup of that record only and try re-inserting that record into the database laters. This entirely depends upon how much critical is that data for you with respect to usage point of view. You can try it re-inserting every 10 minutes of may be once in a day. But don't forget to remove the backup of that record once it is inserted into live database (For backup, you can use the same copy of database locally)
QuestionRDLC Report Designer Pin
cdpsource19-Aug-13 22:10
cdpsource19-Aug-13 22:10 
QuestionBest way to declaring multiple objects Pin
rfresh19-Aug-13 18:06
rfresh19-Aug-13 18:06 
AnswerRe: Best way to declaring multiple objects Pin
Abhinav S19-Aug-13 19:01
Abhinav S19-Aug-13 19:01 
AnswerRe: Best way to declaring multiple objects Pin
OriginalGriff19-Aug-13 20:55
mveOriginalGriff19-Aug-13 20:55 
GeneralRe: Best way to declaring multiple objects Pin
rfresh20-Aug-13 8:14
rfresh20-Aug-13 8:14 
GeneralRe: Best way to declaring multiple objects Pin
OriginalGriff20-Aug-13 8:41
mveOriginalGriff20-Aug-13 8:41 
QuestionC# Iframe WebBrowser Automation Pin
Abhinav Chitre19-Aug-13 9:41
Abhinav Chitre19-Aug-13 9:41 
AnswerRe: C# Iframe WebBrowser Automation Pin
Richard MacCutchan19-Aug-13 20:51
mveRichard MacCutchan19-Aug-13 20:51 
QuestionC Code Inside Visual Studio 2010? Pin
Member 944713619-Aug-13 5:14
Member 944713619-Aug-13 5:14 
AnswerRe: C Code Inside Visual Studio 2010? Pin
DaveyM6919-Aug-13 5:28
professionalDaveyM6919-Aug-13 5:28 
QuestionWinforms, Console, IPC and stuff Pin
Member 965483119-Aug-13 0:10
Member 965483119-Aug-13 0:10 
SuggestionRe: Winforms, Console, IPC and stuff PinPopular
Richard MacCutchan19-Aug-13 2:07
mveRichard MacCutchan19-Aug-13 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.