Ask a Question related to ASP.NET Security, Design and Development.
-
Andy #1
File Download?
Hello,
a great problem for me is to download a file by other
account than the logon user. I change the identity ->
int usertoken;
bool LoginOK = LogonUser
("user", "", "pwd", 3, 0, out usertoken);
if(LoginOK)
{
Session["usertoken"] =
usertoken;
}
WindowsIdentity
ImpersonationIdentity = new WindowsIdentity((IntPtr)
usertoken);
WindowsImpersonationContext
ImpersonationContext = ImpersonationIdentity.Impersonate();
WindowsIdentity Identity =
WindowsIdentity.GetCurrent();
This account have access to the folder and can only upload
a file ;-(
Can anyone help me??
Thanks a lot and best regards
Andy
Andy Guest
-
File Download
Assuming I had some file(s) which i wanted posted on the web for other web viewers to download. How do i accomplish this. Can also reply at... -
ASP File download
Hello. I have a site developed. Throughout the site there are downloads littered throughout. They link to pdf's. What I need to do is create a... -
Download a file
Hello, I would like that a user can download a file starting from a server and that the user could place it where he wants. (sorry I'm a French guy... -
file download in ASP.Net
Hi I am working on a web application and in ASp.Net using C#. The requirement is to create a csv file on the server and the user should be able to...



Reply With Quote

