Hi, All
I am trying to create a file folder for any login user, and create sub
folders for the user on a web page. After the user login again, he can only
sees his own folder on the Web page. I am planning to use VB2005 or C#.
I look the help files and searched on the web, I cannot find the answer. Is
this possble in ASP.NET 2.0?
Thanks
kai 10 14265
On May 25, 9:01 pm, "kai" <kaili...@bellsouth.netwrote:
Hi, All
I am trying to create a file folder for any login user, and create sub
folders for the user on a web page. After the user login again, he can only
sees his own folder on the Web page. I am planning to use VB2005 or C#.
kai,
use DirectoryInfo.Create to create the new folders
For each user/folder create a web.config file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authorization>
<allow users="usernamehere" />
<deny users="*" />
</authorization>
</system.web>
</configuration>
and locate it in the folder. It helps to protect a folder from
unauthorized access.
Maybe you can explain more detail exactly what do you want to do
This can surely be done, but I would like to share my experience on files on
the web-server:
I designed an upload function for user files, but after some time the
administrator of the web-server was less happy about the volume of these
files (CD images and other large files). After some pondering I have decided
for another option; storing the user files in blob-fields on an SQL-server.
The administrator said this server had unlimited space, they only add more
HDD's far into TB. Well, in that way it is easy to store userid along with
the file and everything else you want to control access.
Bjorn
"kai" <ka******@bellsouth.netwrote in message
news:so*****************@bignews5.bellsouth.net...
Hi, All
I am trying to create a file folder for any login user, and create sub
folders for the user on a web page. After the user login again, he can
only sees his own folder on the Web page. I am planning to use VB2005 or
C#.
I look the help files and searched on the web, I cannot find the answer.
Is this possble in ASP.NET 2.0?
Thanks
kai
Alexey,
Thank you for your help!
I want to create a web site which manages files for authorized users,
uploading and downloading.
1. A user can create a folder and sub folders for himself on a web page,
then can see his folders in tree views on the web page. The user can then
upload files and download files from his owen folder and subfolders.
2. The next time the user logs in, he will only see his owen folders
displayed on the web page, and it is protected from being accessed by other
users.
Thanks
Kai
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@u30g2000hsc.googlegr oups.com...
On May 25, 9:01 pm, "kai" <kaili...@bellsouth.netwrote:
>Hi, All I am trying to create a file folder for any login user, and create sub folders for the user on a web page. After the user login again, he can only sees his own folder on the Web page. I am planning to use VB2005 or C#.
kai,
use DirectoryInfo.Create to create the new folders
For each user/folder create a web.config file
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authorization>
<allow users="usernamehere" />
<deny users="*" />
</authorization>
</system.web>
</configuration>
and locate it in the folder. It helps to protect a folder from
unauthorized access.
Maybe you can explain more detail exactly what do you want to do
Bjorn,
Thank you very much for your help.
After storing files in the SQL Server, can them be organized in the
folders? Can user download the files from SQL Server?
Thanks
Kai
"Bjorn Sagbakken" <bj*****@online.nowrote in message
news:gr*********************@telenor.com...
This can surely be done, but I would like to share my experience on files
on the web-server:
I designed an upload function for user files, but after some time the
administrator of the web-server was less happy about the volume of these
files (CD images and other large files). After some pondering I have
decided for another option; storing the user files in blob-fields on an
SQL-server. The administrator said this server had unlimited space, they
only add more HDD's far into TB. Well, in that way it is easy to store
userid along with the file and everything else you want to control access.
Bjorn
"kai" <ka******@bellsouth.netwrote in message
news:so*****************@bignews5.bellsouth.net...
>Hi, All I am trying to create a file folder for any login user, and create sub folders for the user on a web page. After the user login again, he can only sees his own folder on the Web page. I am planning to use VB2005 or C#.
I look the help files and searched on the web, I cannot find the answer. Is this possble in ASP.NET 2.0?
Thanks
kai
Of course, the user can download the files from the SQL server. The user
will not know the difference, not knowing exactly where the files have been
stored. After all, the user experience only basic HTML at his end. At the
server end there may be all sorts of magic...
Bjorn
"kai" <ka******@bellsouth.netwrote in message
news:VP*****************@bignews5.bellsouth.net...
Bjorn,
Thank you very much for your help.
After storing files in the SQL Server, can them be organized in the
folders? Can user download the files from SQL Server?
Thanks
Kai
"Bjorn Sagbakken" <bj*****@online.nowrote in message
news:gr*********************@telenor.com...
>This can surely be done, but I would like to share my experience on files on the web-server: I designed an upload function for user files, but after some time the administrator of the web-server was less happy about the volume of these files (CD images and other large files). After some pondering I have decided for another option; storing the user files in blob-fields on an SQL-server. The administrator said this server had unlimited space, they only add more HDD's far into TB. Well, in that way it is easy to store userid along with the file and everything else you want to control access.
Bjorn
"kai" <ka******@bellsouth.netwrote in message news:so*****************@bignews5.bellsouth.net.. .
>>Hi, All I am trying to create a file folder for any login user, and create sub folders for the user on a web page. After the user login again, he can only sees his own folder on the Web page. I am planning to use VB2005 or C#.
I look the help files and searched on the web, I cannot find the answer. Is this possble in ASP.NET 2.0?
Thanks
kai
On May 25, 11:39 pm, "kai" <kaili...@bellsouth.netwrote:
Alexey,
Thank you for your help!
I want to create a web site which manages files for authorized users,
uploading and downloading.
1. A user can create a folder and sub folders for himself on a web page,
then can see his folders in tree views on the web page. The user can then
upload files and download files from his owen folder and subfolders.
2. The next time the user logs in, he will only see his owen folders
displayed on the web page, and it is protected from being accessed by other
users.
In principle, you don't need to create a folders. As Bjorn said, there
may be all sorts of magic. A "directory tree" can be saved as a
configuration in a database. All files can be either uploaded to
server drive in a global directory (plus names of the files in the
database), or stored directly in a database, as Bjorn has told you.
There are pros and cons of each solution and also a lot of discussions
about that matter
Just found an article that might be interesting to you, take a look http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=414
Alexey,
This is a huge help! Thanks
Kai
"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@p47g2000hsd.googlegr oups.com...
On May 25, 11:39 pm, "kai" <kaili...@bellsouth.netwrote:
>Alexey, Thank you for your help! I want to create a web site which manages files for authorized users, uploading and downloading.
1. A user can create a folder and sub folders for himself on a web page, then can see his folders in tree views on the web page. The user can then upload files and download files from his owen folder and subfolders.
2. The next time the user logs in, he will only see his owen folders displayed on the web page, and it is protected from being accessed by other users.
In principle, you don't need to create a folders. As Bjorn said, there
may be all sorts of magic. A "directory tree" can be saved as a
configuration in a database. All files can be either uploaded to
server drive in a global directory (plus names of the files in the
database), or stored directly in a database, as Bjorn has told you.
There are pros and cons of each solution and also a lot of discussions
about that matter
Just found an article that might be interesting to you, take a look http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=414
Bjorn ,
Thank for sharing your experiences.
After I insert a file for the user, how do you retrive the file for the
user? do you insert username and password into the files_Table?
Thanks
Kai
"Bjorn Sagbakken" <bj*****@online.nowrote in message
news:Q9*********************@telenor.com...
Of course, the user can download the files from the SQL server. The user
will not know the difference, not knowing exactly where the files have
been stored. After all, the user experience only basic HTML at his end. At
the server end there may be all sorts of magic...
Bjorn
"kai" <ka******@bellsouth.netwrote in message
news:VP*****************@bignews5.bellsouth.net...
>Bjorn, Thank you very much for your help. After storing files in the SQL Server, can them be organized in the folders? Can user download the files from SQL Server?
Thanks
Kai
"Bjorn Sagbakken" <bj*****@online.nowrote in message news:gr*********************@telenor.com...
>>This can surely be done, but I would like to share my experience on files on the web-server: I designed an upload function for user files, but after some time the administrator of the web-server was less happy about the volume of these files (CD images and other large files). After some pondering I have decided for another option; storing the user files in blob-fields on an SQL-server. The administrator said this server had unlimited space, they only add more HDD's far into TB. Well, in that way it is easy to store userid along with the file and everything else you want to control access.
Bjorn
"kai" <ka******@bellsouth.netwrote in message news:so*****************@bignews5.bellsouth.net. .. Hi, All I am trying to create a file folder for any login user, and create sub folders for the user on a web page. After the user login again, he can only sees his own folder on the Web page. I am planning to use VB2005 or C#.
I look the help files and searched on the web, I cannot find the answer. Is this possble in ASP.NET 2.0?
Thanks
kai
On May 26, 3:11 pm, "kai" <kaili...@bellsouth.netwrote:
Bjorn ,
Thank for sharing your experiences.
After I insert a file for the user, how do you retrive the file for the
user? do you insert username and password into the files_Table?
just look at the article I've sent you, I think it's explained quite
good
I think the article Alexey sent you was excellent, it covers it all.
But to answer about my case: Yes I have a user login with username and
password. I keep the username (not the passord - this may be cahanging)
along with customerno and various credibilities in a session var, so each
form can set the appropriate properties for each user. And finally, the
username is stored in a column (LastChangedBy or OwnerID or AddedByID ...)
in various tables. On uploading files, my users have to specify a cathegory
and a description of the file. All this information along with current
datetime and the file itself is stored in a table.
Retrieving is very easy: SELECT * from FileTable WHERE OwnerID=LoginID
Bjørn
"kai" <ka******@bellsouth.netwrote in message
news:gm*****************@bignews8.bellsouth.net...
Bjorn ,
Thank for sharing your experiences.
After I insert a file for the user, how do you retrive the file for the
user? do you insert username and password into the files_Table?
Thanks
Kai
"Bjorn Sagbakken" <bj*****@online.nowrote in message
news:Q9*********************@telenor.com...
>Of course, the user can download the files from the SQL server. The user will not know the difference, not knowing exactly where the files have been stored. After all, the user experience only basic HTML at his end. At the server end there may be all sorts of magic...
Bjorn
"kai" <ka******@bellsouth.netwrote in message news:VP*****************@bignews5.bellsouth.net.. .
>>Bjorn, Thank you very much for your help. After storing files in the SQL Server, can them be organized in the folders? Can user download the files from SQL Server?
Thanks
Kai
"Bjorn Sagbakken" <bj*****@online.nowrote in message news:gr*********************@telenor.com... This can surely be done, but I would like to share my experience on files on the web-server: I designed an upload function for user files, but after some time the administrator of the web-server was less happy about the volume of these files (CD images and other large files). After some pondering I have decided for another option; storing the user files in blob-fields on an SQL-server. The administrator said this server had unlimited space, they only add more HDD's far into TB. Well, in that way it is easy to store userid along with the file and everything else you want to control access.
Bjorn
"kai" <ka******@bellsouth.netwrote in message news:so*****************@bignews5.bellsouth.net ... Hi, All I am trying to create a file folder for any login user, and create sub folders for the user on a web page. After the user login again, he can only sees his own folder on the Web page. I am planning to use VB2005 or C#. > I look the help files and searched on the web, I cannot find the answer. Is this possble in ASP.NET 2.0? > > Thanks > kai > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ken Fine |
last post by:
I want my application to maintain a directory tree based on months and
years, e.g.:
2004
January
file
file
file
February
file
|
by: Ramil Domingo |
last post by:
Hi All,
I would like to know how to create a setup and deployment project for all my
source code solution with varying projects such as VB.NET, C#, ASP.NET, Web
Services, etc. so that I could...
|
by: David Webb |
last post by:
The problem started when the Working Folder for a project was somehow set to
the folder of another project. I set the correct working folder in VSS and
deleted the .vbproj files that had been...
|
by: I_AM_DON_AND_YOU? |
last post by:
There is one more problem I am facing but didn't get the solution. In my
Setup Program I am not been able to create 2 things (when the program is
intalled on the client machine ) : (1) create...
|
by: Paw |
last post by:
Greetings.
I use asp.
what I need is is when a visitor comes to the site, I need it to check
the host name. if "www.hometowndigest.com" is the host, then check a
folder named "something" and if...
|
by: barb |
last post by:
So that the world at large benefits from our efforts, here is one fully
documented way to use Windows Irfanview freeware to create thumbnail web
galleries (http://www.irfanview.com).
STEP 1:...
|
by: Niyazi |
last post by:
Hi,
I created application that store the data in SQL SERVER that reside on
network. The client also use this application to access the resources
provided with application. But is the client want...
|
by: TechieGrl |
last post by:
I want to save a zip file daily. The file is named the same thing
each day so I would like to create a folder and name it with today's
date and then save the zip file into that folder.
I'm...
|
by: Alan Mailer |
last post by:
Again, I'm new to VB.net and there is something I need help with:
Like (I assume) many of us, over time I want to be able to create some
VB.net classes that I might want to use in more than one...
|
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: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |