Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
QuestionUndo changes to context when using EntityFramework 4.0/4.1 Pin
MaWeRic15-Jun-11 5:59
MaWeRic15-Jun-11 5:59 
AnswerRe: Undo changes to context when using EntityFramework 4.0/4.1 Pin
dasblinkenlight15-Jun-11 8:33
dasblinkenlight15-Jun-11 8:33 
AnswerRe: Undo changes to context when using EntityFramework 4.0/4.1 Pin
AspDotNetDev15-Jun-11 9:45
protectorAspDotNetDev15-Jun-11 9:45 
Question[Solved] PropertyGrid with multiple SelectedObjects [modified] Pin
lukeer15-Jun-11 4:31
lukeer15-Jun-11 4:31 
QuestionC# webservice Pin
Member 401661615-Jun-11 4:09
Member 401661615-Jun-11 4:09 
AnswerRe: C# webservice Pin
Not Active15-Jun-11 4:15
mentorNot Active15-Jun-11 4:15 
AnswerRe: C# webservice Pin
BobJanova15-Jun-11 4:26
BobJanova15-Jun-11 4:26 
QuestionDownload with httpwebrequest/response and stream Pin
Muli10015-Jun-11 3:32
Muli10015-Jun-11 3:32 
Hello everyone this is my first post Smile | :) so be gentle.

I've implemented a solution to download file,
the problem is that specific pdf files can't be downloaded with lots of bytes per package therefore I want to decrease the number of packages but in order to reduce the waiting time until download completion I want to download the file in sections which means to download parts of the file simultaneously when I implemented it I got an exception "Stream does'nt support multiple IO accesses" probably I'm doing something wrong can someone tell me what should I correct or how should I do it?

for (int i = 0; i < numberOfParts; i++)
                            {
                                httpRequest.AddRange("splittedDownload",Convert.ToInt32(i * size / 5),Convert.ToInt32((i+1) * size / 5-1));
                                httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                                streams.Add(new MyStream(httpResponse.GetResponseStream(),i+1));
                                IAsyncResult result = streams[i].Input.BeginRead(buffer, 0, paketSize, AsyncDownload, streams[i]);
                            }


Thanks.
AnswerRe: Download with httpwebrequest/response and stream Pin
BobJanova15-Jun-11 4:08
BobJanova15-Jun-11 4:08 
GeneralRe: Download with httpwebrequest/response and stream Pin
Muli10015-Jun-11 4:20
Muli10015-Jun-11 4:20 
GeneralRe: Download with httpwebrequest/response and stream Pin
BobJanova15-Jun-11 4:25
BobJanova15-Jun-11 4:25 
GeneralRe: Download with httpwebrequest/response and stream Pin
Muli10016-Jun-11 0:40
Muli10016-Jun-11 0:40 
QuestionHow to Create Zoom In/Out for Text Pin
Anubhava Dimri15-Jun-11 2:16
Anubhava Dimri15-Jun-11 2:16 
AnswerRe: How to Create Zoom In/Out for Text Pin
BobJanova15-Jun-11 3:09
BobJanova15-Jun-11 3:09 
AnswerRe: How to Create Zoom In/Out for Text Pin
OriginalGriff15-Jun-11 3:27
mveOriginalGriff15-Jun-11 3:27 
GeneralRe: How to Create Zoom In/Out for Text Pin
BobJanova15-Jun-11 4:05
BobJanova15-Jun-11 4:05 
QuestionIs it possible to change the remote SQL Server Job Start time in C# Pin
Vimalsoft(Pty) Ltd14-Jun-11 23:19
professionalVimalsoft(Pty) Ltd14-Jun-11 23:19 
AnswerRe: Is it possible to change the remote SQL Server Job Start time in C# Pin
Blue_Boy14-Jun-11 23:35
Blue_Boy14-Jun-11 23:35 
GeneralRe: Is it possible to change the remote SQL Server Job Start time in C# Pin
Vimalsoft(Pty) Ltd15-Jun-11 3:24
professionalVimalsoft(Pty) Ltd15-Jun-11 3:24 
GeneralRe: Is it possible to change the remote SQL Server Job Start time in C# Pin
Blue_Boy15-Jun-11 4:01
Blue_Boy15-Jun-11 4:01 
AnswerRe: Is it possible to change the remote SQL Server Job Start time in C# Pin
jschell15-Jun-11 9:01
jschell15-Jun-11 9:01 
QuestionVSTO word addin Pin
adkalavadia14-Jun-11 21:04
adkalavadia14-Jun-11 21:04 
AnswerRe: VSTO word addin Pin
Roger Wright15-Jun-11 21:39
professionalRoger Wright15-Jun-11 21:39 
Questionhow to load and display two images in c# Pin
ankushjain14-Jun-11 20:56
ankushjain14-Jun-11 20:56 
AnswerRe: how to load and display two images in c# Pin
Richard MacCutchan14-Jun-11 22:10
mveRichard MacCutchan14-Jun-11 22:10 

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.