Hey all,
is there a way to use System.IO.Directory.CreateDirectory on asp.net where
it creates it on the client?
thanks,
rodchar 7 1246
No -- ASP.NET is server side technique
--
Swanand Mokashi
Microsoft Certified Solution Developer (.NET) - Early Achiever
Microsoft Certified Application Developer (.NET) http://www.dotnetgenerics.com/
DotNetGenerics.com -- anything and everything about Microsoft .NET
technology ... http://www.swanandmokashi.com/ http://www.swanandmokashi.com/HomePage/WebServices/
Home of the Stock Quotes, Quote of the day and Horoscope web services
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com... Hey all,
is there a way to use System.IO.Directory.CreateDirectory on asp.net where it creates it on the client?
thanks, rodchar No -- ASP.NET is server side technique
Even if it were client side, you couldn't do this. Or at least shouldn't be
able to. I certainly don't want my web browser being able to write content
to my HD from a web site.
-Darrel
any workarounds, if i needed to have c:\temp created if it doesn't exist.
"Swanand Mokashi" wrote: No -- ASP.NET is server side technique
-- Swanand Mokashi Microsoft Certified Solution Developer (.NET) - Early Achiever Microsoft Certified Application Developer (.NET)
http://www.dotnetgenerics.com/ DotNetGenerics.com -- anything and everything about Microsoft .NET technology ...
http://www.swanandmokashi.com/ http://www.swanandmokashi.com/HomePage/WebServices/ Home of the Stock Quotes, Quote of the day and Horoscope web services
"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:B2**********************************@microsof t.com... Hey all,
is there a way to use System.IO.Directory.CreateDirectory on asp.net where it creates it on the client?
thanks, rodchar
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com... any workarounds, if i needed to have c:\temp created if it doesn't exist.
You need to stop and think for a minute...
Imagine a browser allowing a website to have write access to the client
machines' hard disk...
You could create an ActiveX control
--
Swanand Mokashi
Microsoft Certified Solution Developer (.NET) - Early Achiever
Microsoft Certified Application Developer (.NET) http://www.dotnetgenerics.com/
DotNetGenerics.com -- anything and everything about Microsoft .NET
technology ... http://www.swanandmokashi.com/ http://www.swanandmokashi.com/HomePage/WebServices/
Home of the Stock Quotes, Quote of the day and Horoscope web services
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com... any workarounds, if i needed to have c:\temp created if it doesn't exist.
"Swanand Mokashi" wrote:
No -- ASP.NET is server side technique
-- Swanand Mokashi Microsoft Certified Solution Developer (.NET) - Early Achiever Microsoft Certified Application Developer (.NET)
http://www.dotnetgenerics.com/ DotNetGenerics.com -- anything and everything about Microsoft .NET technology ...
http://www.swanandmokashi.com/ http://www.swanandmokashi.com/HomePage/WebServices/ Home of the Stock Quotes, Quote of the day and Horoscope web services
"rodchar" <ro*****@discussions.microsoft.com> wrote in message news:B2**********************************@microsof t.com... > Hey all, > > is there a way to use System.IO.Directory.CreateDirectory on asp.net > where > it creates it on the client? > > thanks, > rodchar
This is not possible by default because of security concerns.
The only way you could do such a thing is if you had a thick client with the
proper permissions.
An ActiveX control would be the most likely solution.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com... Hey all,
is there a way to use System.IO.Directory.CreateDirectory on asp.net where it creates it on the client?
thanks, rodchar
thanks everyone for the help.
"rodchar" wrote: Hey all,
is there a way to use System.IO.Directory.CreateDirectory on asp.net where it creates it on the client?
thanks, rodchar This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Frederico Caldeira Knabben |
last post by:
Hello,
I'm having a problem when trying to use the Directory.CreateDirectory()
method. It throws a DirectoryNotFoundException exception. I'll try to
illustrate it:
Suppose you have the...
|
by: David Davies |
last post by:
Please HELP !!
I have a web page that is trying to create folders on a file server
eg. \\SERVERNAME\F4\Projects\
Users of the web site are authenticated with Windows Integrated Security.
...
|
by: Daniel |
last post by:
If I call CreateDirectory(\\\\devDriveA\\foo\\bar\\a\\b\\c) and
\\devDriveA\foo\bar already exists then sub directories a\b\c don't get
created. When I use CreateDirectory on my own file system,...
|
by: Van Nguyen via DotNetMonster.com |
last post by:
My app run at 2 modes: Windows and Service. At Windows mode, my app works fine but at service mode, I can not use CreateDirectory command to create a new directory on server.
Ex:...
|
by: Tim |
last post by:
Hi, I am trying to create a directory from within my
program. I found the IO::Directory::CreateDirectory
(filename) function, and used that but I get two errors
concerning CreateDirectoryA (one...
|
by: H.B. |
last post by:
Hi,
Is there a way to avoid conflicts between CreateDirectory() (from API) and
Directory::CreateDirectory(). The other functions from Directory class
works(Exists() as example). It seems to be...
|
by: Clinton Frankland |
last post by:
Hi,
On a Windows 2000 Server when attempting to use
System.IO.Directory.CreateDirectory(string.concat(Server.MapPath(""),
"\verify"))
I receive a System.IO.DirectoryNotFoundException error:...
|
by: Dan Lorenz |
last post by:
When trying to use the function CreateDirectory on my local machine
everything works fine but when I upload the page to my webhost I get an issue
that it can't find path on D:\, though D:\ is what...
|
by: Toolsmith |
last post by:
The following code:
C# code:
Directory.CreateDirectory("D:\\somewhere\\somewhereelse\\here\\")
works, but the following does flags the error:
An unhandled exception of type...
|
by: Tom |
last post by:
This is really weird, but I have the following code:
private static readonly string mString = "tempUnzipDir" +
Path.DirectorySeparatorChar;
....
public static string...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |