473,473 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Input File

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

--

******************
Reggie
Oct 26 '07 #1
4 1222
"Reggie" <NoSpam_chief123101@NoSpam_hotmail.comwrote in message
news:SO******************************@comcast.com. ..
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
ASP.NET MVP
http://www.markrae.net

Oct 26 '07 #2
Thanks Mark. Doesn't hurt to ask and I'm a little confused on the security
issue, but such is life.

--

******************
Reggie
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:ec**************@TK2MSFTNGP05.phx.gbl...
"Reggie" <NoSpam_chief123101@NoSpam_hotmail.comwrote in message
news:SO******************************@comcast.com. ..
>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
ASP.NET MVP
http://www.markrae.net

Oct 26 '07 #3
"Reggie" <NoSpam_chief123101@NoSpam_hotmail.comwrote in message
news:qP******************************@comcast.com. ..
>>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...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 26 '07 #4
I see said the blind man. That would not be good. Thanks for the lesson.

--

******************
Reggie
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:OQ**************@TK2MSFTNGP02.phx.gbl...
"Reggie" <NoSpam_chief123101@NoSpam_hotmail.comwrote in message
news:qP******************************@comcast.com. ..
>>>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...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 26 '07 #5

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

Similar topics

0
by: Gregory Lielens | last post by:
Hello all, I am not sure this is the correct list to ask as my problem is really related to python low level implementation, but as I do not have found a python.dev list, here it is :-) We...
5
by: Gregg | last post by:
Hello all, I have been banging my head over a problem that I am having reading a comma seperated file (CSV) that can contain from 1 to 10,000 records. My code snipit is as follows: **Start...
2
by: SophistiCat | last post by:
Hi, I am working on a computational program that has to read a number of parameters (~50) from an input file. The program contains a single class hierarchy with about a dozen member-classes or...
7
by: MM | last post by:
Hi there, How can I change my code (below) so that I use an "input argument" to specify the file name of the input file? For example, if I compile the code and that the application then gets the...
1
by: Aalok | last post by:
This is what i want to do. Read a text file as an input and based on that file, Create an outpu text file which saves the contents of the input file in a specifi format in the output file. I...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
2
by: Killer42 | last post by:
The Input #1 statement simply reads in one line from a text file (in this case you INI file) and places the values from it into one or more variables. So what you are reading in this statement is...
1
by: yohan610 | last post by:
i have to read the binary data of a file, then encrypt them according to a supplied algorithm...and then the obtained output has to be written to an output file...everything works ok, and there are...
4
by: Newbie | last post by:
Hello I need to enter a string of the form abc (a string of characters followed by EOF) #include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 100 int main(void) {
8
omerbutt
by: omerbutt | last post by:
hi there i have a form with multiple input (type/text ) fields and three inputs(type/file) fields i have to submit the form via ajax because i have multiple forms on this page ,you can say it is a...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
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.