i hosted my web application in IIS in my system and access this website in some other system or computer,i want show the directory of that system to select the folder path.And get the folder path that user has been selected.It dont show the path of my system
directory.
thanks for your reply.But its for selecting the file but im asking
for select the folder not file.I need to browse client directory and select the path.How to do this?
The file uploder is the control which help to select the file but not the path of the file or directory and also we can't make a Active
X Control for this so with the help of pop-up we provide the user to select file or directory path in the intranet. This pop-up look same like the directory browing in desktop application.
thanks for your reply.But its for selecting the file but im asking
for select the folder not file.I need to browse client directory and select the path.How to do this?
please guide me friends
If you want to browser directories at client's computer, that is basically not possible in a web application. For security concerns, web browsers do not do these things, so the browser can not traverse into the folder to find files in it. You'll have users
to select one by one.
girikas
Member
67 Points
321 Posts
how to get client folder path not file using ajax in asp.net?
Aug 20, 2012 06:23 AM|LINK
i hosted my web application in IIS in my system and access this website in some other system or computer,i want show the directory of that system to select the folder path.And get the folder path that user has been selected.It dont show the path of my system directory.
is there any ajax control for this ??
how to fix this error?
pls guide me friends...
tareshjha
Member
190 Points
96 Posts
Re: how to get client folder path not file using ajax in asp.net?
Aug 20, 2012 08:16 AM|LINK
hello
Try to use Server.MapPath( exact path) method to get the path.
Please Mark as Answer if my post helps you.
Thanks
Taresh
girikas
Member
67 Points
321 Posts
Re: how to get client folder path not file using ajax in asp.net?
Aug 20, 2012 08:29 AM|LINK
hi tareshjha,
really thanks for your reply.But im asking control as like Open file dialog in windows application.
can u please update the coding if any tool as ike that in ajax or jquery for web application?
please guide me friends
Mahesh Darku...
Participant
896 Points
238 Posts
Re: how to get client folder path not file using ajax in asp.net?
Aug 20, 2012 08:32 AM|LINK
Use File Upload control
girikas
Member
67 Points
321 Posts
Re: how to get client folder path not file using ajax in asp.net?
Aug 20, 2012 08:43 AM|LINK
Hi Mahesh Darkunde,
thanks for your reply.But its for selecting the file but im asking for select the folder not file.I need to browse client directory and select the path.How to do this?
please guide me friends
chetan.sarod...
All-Star
65759 Points
11153 Posts
Re: how to get client folder path not file using ajax in asp.net?
Aug 21, 2012 03:15 AM|LINK
Hi,
The file uploder is the control which help to select the file but not the path of the file or directory and also we can't make a Active X Control for this so with the help of pop-up we provide the user to select file or directory path in the intranet. This pop-up look same like the directory browing in desktop application.
Please check the following link:
http://www.codeproject.com/KB/aspnet/DirectoryBrowsing.aspx
Some similer posts are here:
http://forums.asp.net/p/1077850/1587461.aspx
http://forums.asp.net/p/1170634/1959688.aspx
http://forums.asp.net/p/1333198/2679951.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: how to get client folder path not file using ajax in asp.net?
Aug 22, 2012 02:05 AM|LINK
If you want to browser directories at client's computer, that is basically not possible in a web application. For security concerns, web browsers do not do these things, so the browser can not traverse into the folder to find files in it. You'll have users to select one by one.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework