Click here to Skip to main content
15,905,323 members
Home / Discussions / C#
   

C#

 
AnswerRe: Connect to database via web service Pin
Gareth H28-May-08 7:39
Gareth H28-May-08 7:39 
GeneralRe: Connect to database via web service Pin
HenrydeSousa29-May-08 4:20
HenrydeSousa29-May-08 4:20 
QuestionWhat is the Error Pin
ASysSolvers28-May-08 4:33
ASysSolvers28-May-08 4:33 
AnswerRe: What is the Error Pin
leppie28-May-08 6:39
leppie28-May-08 6:39 
GeneralRe: What is the Error Pin
Guffa28-May-08 8:31
Guffa28-May-08 8:31 
QuestionOpenFileDialog in Web... Pin
Chetan Ranpariya28-May-08 3:59
Chetan Ranpariya28-May-08 3:59 
AnswerRe: OpenFileDialog in Web... Pin
leppie28-May-08 4:01
leppie28-May-08 4:01 
AnswerRe: OpenFileDialog in Web... Pin
Mike Dimmick28-May-08 4:30
Mike Dimmick28-May-08 4:30 
Do you mean that you're using Windows Forms controls in a webpage, where the control is downloaded to the browser?

Those controls run in a security sandbox, to prevent them from damaging the rest of the system (this is the same as Java applets). The CLR enforces this security sandbox by preventing code from being loaded that would violate the security policy.

One of the things that remote code is not allowed to do is open arbitrary files directly using the
FileStream
class or its derivatives. You can generally, however, open files via an
OpenFileDialog
, if you use the
OpenFile
method of the dialog object. You cannot find out the filename using the
FileName
property.

The .NET Framework security set is quite granular. The exact permissions to perform a task are generally listed at the bottom of the documentation. You can find the list of defaults at Default Security Policy[^]. Your code, if running in a web page, will come under the Local Intranet zone if on the local network (and, in IE 7.0, the computer is on an Active Directory domain) and under Internet if on a different network.


DoEvents: Generating unexpected recursion since 1991

QuestionTransferring data from Excel Sheet to SQL Server 2000 database Pin
Dextter28-May-08 3:47
Dextter28-May-08 3:47 
AnswerRe: Transferring data from Excel Sheet to SQL Server 2000 database Pin
Bijesh28-May-08 3:57
Bijesh28-May-08 3:57 
QuestionFunction for Converting Plural into Singular Pin
KBM7328-May-08 3:43
KBM7328-May-08 3:43 
AnswerRe: Function for Converting Plural into Singular Pin
leppie28-May-08 3:56
leppie28-May-08 3:56 
GeneralRe: Function for Converting Plural into Singular Pin
led mike28-May-08 4:29
led mike28-May-08 4:29 
AnswerRe: Function for Converting Plural into Singular Pin
Old Nic3-May-10 4:39
Old Nic3-May-10 4:39 
Questionhow to create dynamic gridview Pin
shaek28-May-08 3:42
shaek28-May-08 3:42 
AnswerRe: how to create dynamic gridview Pin
leppie28-May-08 3:58
leppie28-May-08 3:58 
QuestionTimer Change question.. Pin
ptr2void28-May-08 3:34
ptr2void28-May-08 3:34 
AnswerRe: Timer Change question.. [modified] Pin
leppie28-May-08 3:39
leppie28-May-08 3:39 
AnswerRe: Timer Change question.. Pin
Mike Dimmick28-May-08 4:56
Mike Dimmick28-May-08 4:56 
QuestionFile IO Permissions Pin
Lisa Zapson28-May-08 3:18
Lisa Zapson28-May-08 3:18 
AnswerRe: File IO Permissions Pin
leppie28-May-08 3:34
leppie28-May-08 3:34 
GeneralRe: File IO Permissions Pin
Lisa Zapson28-May-08 3:47
Lisa Zapson28-May-08 3:47 
GeneralRe: File IO Permissions Pin
leppie28-May-08 4:00
leppie28-May-08 4:00 
GeneralRe: File IO Permissions Pin
Lisa Zapson28-May-08 4:50
Lisa Zapson28-May-08 4:50 
GeneralRe: File IO Permissions Pin
leppie28-May-08 6:37
leppie28-May-08 6:37 

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.