473,473 Members | 4,297 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Browse For Folder

I need to create something very similiar to the browse folder capability.
This would allow me to support the following -

A user would create a document on their server, then they would need to
login to the application which we are building to

1). the user would locate their purchase request record in the application.
2). browse the directory for the newly created document
3). find it
4). they would click a save button - this would save the actual directory
path to where the document resides on the server.

all newly created documents or modifications would be performed outside the
application.

Does anyone have any suggestions or sample code?
Nov 19 '05 #1
5 3112
Javva applet or ActiveX control. This sort of functionality is not natively
available in a Web Browser.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Paranoia is just a state of mind.

"Mike Moore" <Mi*******@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
I need to create something very similiar to the browse folder capability.
This would allow me to support the following -

A user would create a document on their server, then they would need to
login to the application which we are building to

1). the user would locate their purchase request record in the
application.
2). browse the directory for the newly created document
3). find it
4). they would click a save button - this would save the actual directory
path to where the document resides on the server.

all newly created documents or modifications would be performed outside
the
application.

Does anyone have any suggestions or sample code?

Nov 19 '05 #2

I have seen similar functionality in Share point portals.. it supports
folder view just as windows explorer... but the Share point would be suitable
only for intranet applications i guess.
"Mike Moore" wrote:
I need to create something very similiar to the browse folder capability.
This would allow me to support the following -

A user would create a document on their server, then they would need to
login to the application which we are building to

1). the user would locate their purchase request record in the application.
2). browse the directory for the newly created document
3). find it
4). they would click a save button - this would save the actual directory
path to where the document resides on the server.

all newly created documents or modifications would be performed outside the
application.

Does anyone have any suggestions or sample code?

Nov 19 '05 #3
Mike:

Although Java or an ActiveX control would address this issue, another way to
implement this would be to use an file upload input on your web page (i.e.
<input type=file>. This gives you the browse capability, however with the
tradeoff that if you just submit the page without doing anything, the actual
file will be uploaded to the server. My understanding is that you just want
the path and not the actual file.

To work around this caveat, you could have a jscript (javascript) function
on the page which would handle the Save button click event. In this event
handler, you could assign the chosen file to a hidden field and then clear
the value of the file input textbox so that no file transfer takes place
when you submit the web page. You can then capture the value of the hidden
field and stored the value in your database. You may want to use the
System.IO namespace to check the validity of the file submitted. Below is a
simple web page which implements this functionality.
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
<script lang="jscript">
function submitForm()
{
<!--You may want to check the myfile variable for a value-->
var filename = document.Form1.myfile.value;
document.Form1.myhiddenfield.value = filename;
document.Form1.myfile.value = "";
document.Form1.submit();
}
</script>
</HEAD>
<body MS_POSITIONING="FlowLayout">
<form id="Form1" method="post" runat="server"
enctype="multipart/form-data">
<P><INPUT type="file" name="myfile"></P>
<P><INPUT type="button" value="Submit" name="mysubmit"
onClick="submitForm()"></P>
<P><INPUT type="hidden" name="myhiddenfield"></P>
</form>
</body>
</HTML>

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.
"Mike Moore" <Mi*******@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
I need to create something very similiar to the browse folder capability.
This would allow me to support the following -

A user would create a document on their server, then they would need to
login to the application which we are building to

1). the user would locate their purchase request record in the application.
2). browse the directory for the newly created document
3). find it
4). they would click a save button - this would save the actual directory
path to where the document resides on the server.

all newly created documents or modifications would be performed outside the
application.

Does anyone have any suggestions or sample code?
Nov 19 '05 #4
Hi,

Would you be able to provide me with the links?
So that I can view the samples.

Thanks.

"Sreejith Ram" wrote:

I have seen similar functionality in Share point portals.. it supports
folder view just as windows explorer... but the Share point would be suitable
only for intranet applications i guess.
"Mike Moore" wrote:
I need to create something very similiar to the browse folder capability.
This would allow me to support the following -

A user would create a document on their server, then they would need to
login to the application which we are building to

1). the user would locate their purchase request record in the application.
2). browse the directory for the newly created document
3). find it
4). they would click a save button - this would save the actual directory
path to where the document resides on the server.

all newly created documents or modifications would be performed outside the
application.

Does anyone have any suggestions or sample code?

Nov 19 '05 #5
Siew,

The examples I have seen are intranet sites using sharepoint portal..
I dont think you will be able to find an internet sample.

Nov 19 '05 #6

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

Similar topics

6
by: mscir | last post by:
I just installed ASP after a couple of years of not using it, PWS Win 98 SE. A couple of things are throwing me, and I can't remember whether these worked in the past. One is I can't...
21
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what...
5
by: deko | last post by:
I'm using the below code to allow users to browse for and select a folder. After selecting a folder from the dialog, the full path is returned to a text box and saved. The next time the user...
5
by: Eric Twietmeyer | last post by:
Hi, Does anyone know why starting with VS.NET 2002 (and same with 2003) it is no longer possible to browse to a directory that has "ept" as part of the path? It worked fine in Vc 6.x. My...
1
by: Ratan | last post by:
Can anybody tell me how to browse folder in ASP.Net, I know there is control for File browse but my requirement is to browse the folder and then just loop through files in that folder and upload...
4
by: Larry Brindise | last post by:
I have an asp.net application. I have used VStudio Web Deployment Project to create the MSI file. I copy the MSI file from my developer PC to my test server running Win2003Server Web Edition. I...
5
by: Dan | last post by:
I am working on a C# ASP.NET project where I need to allow the user to browse to a folder. The only way I see how to do this is use <input type=file>. But this makes the user select a file and...
3
by: Highlander | last post by:
Hello all. Consider the following HTA: <HTML> <HEAD> <TITLE></TITLE></HEAD> <BODY> <SCRIPT LANGUAGE="VBScript"> Sub ButBrowse_onclick() '-- show browse window and Get file path:
6
by: Kuldeep | last post by:
Framework: Visual Studio 2005 Technology: ASP.NET 2.0 Language: C#.NET 2.0 I am trying to browse folders through the following piece of code. Please let me know if there is any kind of setting...
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...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
agi2029
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.