Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: modify C# 2008 desktop application Pin
Pete O'Hanlon1-May-13 18:54
mvePete O'Hanlon1-May-13 18:54 
Questionunexpected end of file Pin
miket2144123451-May-13 13:54
miket2144123451-May-13 13:54 
AnswerRe: unexpected end of file Pin
Freak301-May-13 22:26
Freak301-May-13 22:26 
AnswerRe: unexpected end of file Pin
Eddy Vluggen2-May-13 0:30
professionalEddy Vluggen2-May-13 0:30 
QuestionProblem while exporting a aspx page to pdf Pin
Member 1002163430-Apr-13 23:20
Member 1002163430-Apr-13 23:20 
AnswerRe: Problem while exporting a aspx page to pdf Pin
Jasmine25011-May-13 8:40
Jasmine25011-May-13 8:40 
QuestionBest practice to select and copy a file to a remote location? Pin
matleeds30-Apr-13 23:07
matleeds30-Apr-13 23:07 
AnswerRe: Best practice to select and copy a file to a remote location? Pin
Jasmine25011-May-13 8:37
Jasmine25011-May-13 8:37 
Do you need file access to take place in the context of the actual user who is on the web site? Or, is this a situation where access to the web site means access to the files? If you need the Windows admins to control access to these files, then yes you need to use impersonation, but if you don't need that, it would be much easier to just stream the file back over HTTP. In that case file access would be done by the ASP_NET User, so you would only need to grant one user access to the folder. In the impersonation case, you have to add users to groups and whatnot to manage access to that folder.

Streaming a file back is super easy...

C#
var file = File.Open(path);

Response.Clear();
Response.ContentType = "application\xml"; //or whatever it is
Response.WriteFile(file);
Response.Flush();
Response.Close();
Response.End();

AnswerRe: Best practice to select and copy a file to a remote location? Pin
jschell1-May-13 8:41
jschell1-May-13 8:41 
Questionpassword creation in c# winform Pin
Member 1002123530-Apr-13 18:39
Member 1002123530-Apr-13 18:39 
AnswerRe: password creation in c# winform Pin
Richard MacCutchan30-Apr-13 21:42
mveRichard MacCutchan30-Apr-13 21:42 
AnswerRe: password creation in c# winform Pin
GuyThiebaut1-May-13 2:14
professionalGuyThiebaut1-May-13 2:14 
Questionhow to get the value of a control in a process which start with Process.start Pin
Edward_Zhao30-Apr-13 18:11
professionalEdward_Zhao30-Apr-13 18:11 
AnswerRe: how to get the value of a control in a process which start with Process.start Pin
Richard MacCutchan30-Apr-13 21:37
mveRichard MacCutchan30-Apr-13 21:37 
GeneralRe: how to get the value of a control in a process which start with Process.start Pin
Edward_Zhao1-May-13 14:33
professionalEdward_Zhao1-May-13 14:33 
GeneralRe: how to get the value of a control in a process which start with Process.start Pin
Richard MacCutchan1-May-13 21:02
mveRichard MacCutchan1-May-13 21:02 
QuestionSaving DrawLine to Image: SOLVED Pin
Member 792126830-Apr-13 3:34
Member 792126830-Apr-13 3:34 
AnswerRe: Saving DrawLine to Image Pin
Eddy Vluggen30-Apr-13 4:05
professionalEddy Vluggen30-Apr-13 4:05 
GeneralRe: Saving DrawLine to Image Pin
Member 792126830-Apr-13 5:11
Member 792126830-Apr-13 5:11 
AnswerRe: Saving DrawLine to Image Pin
Kenneth Haugland30-Apr-13 4:42
mvaKenneth Haugland30-Apr-13 4:42 
GeneralRe: Saving DrawLine to Image Pin
Member 79212681-May-13 0:46
Member 79212681-May-13 0:46 
AnswerRe: Saving DrawLine to Image: SOLVED Pin
Member 79212681-May-13 4:39
Member 79212681-May-13 4:39 
QuestionThe performance of LINQ vs. traditional iteration Pin
Rob Philpott30-Apr-13 3:30
Rob Philpott30-Apr-13 3:30 
AnswerRe: The performance of LINQ vs. traditional iteration Pin
Eddy Vluggen30-Apr-13 4:01
professionalEddy Vluggen30-Apr-13 4:01 
GeneralRe: The performance of LINQ vs. traditional iteration Pin
Rob Philpott30-Apr-13 4:31
Rob Philpott30-Apr-13 4:31 

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.