Ask a Question related to ASP.NET General, Design and Development.
-
Anne #1
File Field Control
hie all, i have dragged a File Field control from the HTML
tab to my page and i am able to browse and retrieve the
file i want. the only problem i have is, i do not want my
users to be able to browse to other folders. i want them
to be able to just browse at the specific folder only. in
other words, i just want them to be able to view at the
specific folder when the browser button is clicked. i have
tried looking in the properties, but found no way to do
so. is it possible to acheive what i want to do? is it is,
how can i do it? thanx!
Anne Guest
-
File Field Confusion
Please can someone tell me how to make the "file field" in dreamweaver work. What i'm trying to do is have anyone that enters the site to put a... -
Web Custom Control error on ID field
I get the following error when trying to view in browser an aspx page that has my simple Web Custom Control. If I remove the ID=Controlname from... -
Required field validators do not while editing a row in a datagrid present in a composite control
Hi All, I have created a composite control and I have added a datagrid in it. I am dynamically adding an edit column for editing the data. Now I... -
file field
Hi, In the file field <input type="file" name="file1">, can I modify the button "Browse..."? I want to hide the file field but show a button like... -
Insert a file in a SQL field
You can store the file in a column with datatype image. This holds up to 2GB of binary data. -- Jacco Schalkwijk MCDBA, MCSD, MCSE Database... -
Kevin Spencer #2
Re: File Field Control
No, it is not possible.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Complex things are made up of
lots of simple things.
"Anne" <lilanne_2@yahoo.com> wrote in message
news:08d101c3567b$3873b8a0$a501280a@phx.gbl...> hie all, i have dragged a File Field control from the HTML
> tab to my page and i am able to browse and retrieve the
> file i want. the only problem i have is, i do not want my
> users to be able to browse to other folders. i want them
> to be able to just browse at the specific folder only. in
> other words, i just want them to be able to view at the
> specific folder when the browser button is clicked. i have
> tried looking in the properties, but found no way to do
> so. is it possible to acheive what i want to do? is it is,
> how can i do it? thanx!
Kevin Spencer Guest
-
Ryan Gregg #3
Re: File Field Control
I believe you can use javascript to access the filename property of the File
Upload form field. You could then do some sort of form validation that
would prevent the form from being submitted if the path of the file to
upload wasn't in the directory you were expecting. This would still let
them browse any folder, but they could only upload from a valid folder.
However, this may not be possible anymore due to some security issues that
involved the file upload control and javascript, modern browsers might have
disabled the ability to script that control. However, I haven't checked
into it so I'm not sure.
Ryan Gregg
"Kevin Spencer" <kevin@takempis.com> wrote in message
news:Ol868fpVDHA.2344@TK2MSFTNGP09.phx.gbl...or> Well, there is ONE thing you could do. You could write an ActiveX control> Java Applet to run on the client which would provide the functionality you
> need. It can't be done with a File Upload form field.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> [url]http://www.takempis.com[/url]
> Complex things are made up of
> lots of simple things.
>
> "Anne" <lilanne_2@yahoo.com> wrote in message
> news:08d101c3567b$3873b8a0$a501280a@phx.gbl...>> > hie all, i have dragged a File Field control from the HTML
> > tab to my page and i am able to browse and retrieve the
> > file i want. the only problem i have is, i do not want my
> > users to be able to browse to other folders. i want them
> > to be able to just browse at the specific folder only. in
> > other words, i just want them to be able to view at the
> > specific folder when the browser button is clicked. i have
> > tried looking in the properties, but found no way to do
> > so. is it possible to acheive what i want to do? is it is,
> > how can i do it? thanx!
>
Ryan Gregg Guest



Reply With Quote

