Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Input File

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Reggie - 26 Oct 2007 05:55 GMT
Hi and TIA!  I have an Input file control on form that I want to pass a file
path to.  The page opens and I will pass the file path and name using the
query string which I can obviously retrieve and place into a text box
control and it shows fine, however I can't seem to find a method to pass the
value into the input file control.  This is what I've tried but does not
work.  Any advice is appreciated.  Thanks!

If Request.QueryString("sPath") <> Nothing Then
   strDBPath = Request.QueryString("sPath")
   inpFileUpNIIN.Value = strDBPath
   txtPath.Text = strDBPath
End If

Signature

******************
Reggie

Mark Rae [MVP] - 26 Oct 2007 06:44 GMT
> I have an Input file control on form that I want to pass a file path to.

This is totally impossible, for fairly obvious security reasons...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Reggie - 26 Oct 2007 07:36 GMT
Thanks Mark.  Doesn't hurt to ask and I'm a little confused on the security
issue, but such is life.

Signature

******************
Reggie

>
>> I have an Input file control on form that I want to pass a file path to.
>
> This is totally impossible, for fairly obvious security reasons...
Mark Rae [MVP] - 26 Oct 2007 08:57 GMT
>>> I have an Input file control on form that I want to pass a file path to.
>>
>> This is totally impossible, for fairly obvious security reasons...

> I'm a little confused on the security issue

Put simply, it would allow you to upload a file from a user's computer
without their input...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

Reggie - 26 Oct 2007 10:03 GMT
I see said the blind man.  That would not be good.  Thanks for the lesson.

Signature

******************
Reggie

>
>>>> I have an Input file control on form that I want to pass a file path
[quoted text clipped - 6 lines]
> Put simply, it would allow you to upload a file from a user's computer
> without their input...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.