473,382 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Web Forms and Environment.GetSpecialFolder

I am trying to get the path of a user's Personal folder from within a web form.
When I use the call:

Environment.GetFolderPath(Environment.SpecialFolde r.Personal)

I get absolutely nothing back. When I query for Environment.UserName, it
returns ASPNET (which makes sense). The fact that the user is ASPNET and not
the real local user could explain why I'm not getting anything back with my
GetFolderPath calls.

Is there a way within a Web Form (I'm using vb.net as code behind) to
retrieve the Personal Path of the logged in user?
Jul 21 '05 #1
1 3319
Personal path ?

Do you want to retrieve a server side or client side location ?

On a server a user doesn't have necessarily any specific personal path
(actually it may even have no profile). If your web application needs to
create directory to store some files for a particular user, I would create
explicitly the needed hierarchy as part of the web application data.

If you need the client side lcoation, what would you do with it (would be
more the work of some kind of applet that would do something significant
client side).

Patrice

--

"Chandler Chao" <Chandler Ch**@discussions.microsoft.com> a écrit dans le
message de news:18**********************************@microsof t.com...
I am trying to get the path of a user's Personal folder from within a web form. When I use the call:

Environment.GetFolderPath(Environment.SpecialFolde r.Personal)

I get absolutely nothing back. When I query for Environment.UserName, it
returns ASPNET (which makes sense). The fact that the user is ASPNET and not the real local user could explain why I'm not getting anything back with my GetFolderPath calls.

Is there a way within a Web Form (I'm using vb.net as code behind) to
retrieve the Personal Path of the logged in user?

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sabine Oebbecke | last post by:
Hi Experts! I have several forms and reports where controls get their values with 'Forms!MainForm!Control' or 'Forms!MainForm!Subform!Control' resp 'Forms!MainForm!Subform.Form!Control' which...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
1
by: Alasdair | last post by:
Friends, I'm an old C programmer who upgraded to C++ but was never comfortable with it. I've recently moved to C# and love it but I obviously am missing some of the subtleties. I thought the...
3
by: Joshua Russell | last post by:
Hi, Both the methods below open up a windows form called MasterForm. However, one works better than the other. Method 1 opens the form correctly but I don't have any reference to the instance of...
2
by: Michael Tissington | last post by:
I'm having problems with Forms Authentication in a hosted environment. On our in house server and on my development machine everything works correctly However in a hosted environment, when...
8
by: Stephen Rice | last post by:
Hi, I have a periodic problem which I am having a real time trying to sort. Background: An MDI VB app with a DB on SQL 2000. I have wrapped all the DB access into an object which spawns a...
1
by: Chandler Chao | last post by:
I am trying to get the path of a user's Personal folder from within a web form. When I use the call: Environment.GetFolderPath(Environment.SpecialFolder.Personal) I get absolutely nothing...
6
by: Michael Tissington | last post by:
I have setup up Forms Authentication on my website and added configuration/mappings for exe, pdf and zip files (using C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll) However when...
11
by: Monty | last post by:
Hello, I have a class library of business objects that will accessed both by an ASP.Net front end and a WinForms front-end. A typical business object in class library, let's say "Employee", has...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
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...
0
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.