473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Form fields

Hi
I wish to create a file upload page/s. This page/s should start by asking
the user how many files they wish to upload. When they have entered the
number of files the page/s should then display that many file input boxes
and also display a comment boxes for each file box. I would like this to be
all on one page if possible.
I have started to create a page but have not been able to make the File
input boxes work yet.

Some sample code would be great.
Thanks
Nov 17 '05 #1
3 1103
If by "not been able to make the file input boxes work" you mean that the
file doesn't seem to be uploaded, make sure you've changed the page's form
tag's encType to multipart/form-data.

i.e.
<FORM id="Form1" method="post" runat="server" encType="multipart/form-data">
--
Regards

Tim Stephenson MCSD.NET
Charted MCAD & MCSD.NET Early Achiever
"Kenneth Keeley" <ke*******@hotmail.com.nowhere> wrote in message
news:es**************@TK2MSFTNGP10.phx.gbl...
Hi
I wish to create a file upload page/s. This page/s should start by asking the user how many files they wish to upload. When they have entered the
number of files the page/s should then display that many file input boxes
and also display a comment boxes for each file box. I would like this to be all on one page if possible.
I have started to create a page but have not been able to make the File
input boxes work yet.

Some sample code would be great.
Thanks

Nov 17 '05 #2
No that part is OK the problem is how to submit the number of files the
person wants to upload and then dynamically make the page have that many
file input boxes and captions before the page gets submitted to the Web
site.

"Tim Stephenson" <ti************@archant.co.uk> wrote in message
news:ul*************@TK2MSFTNGP10.phx.gbl...
If by "not been able to make the file input boxes work" you mean that the
file doesn't seem to be uploaded, make sure you've changed the page's form
tag's encType to multipart/form-data.

i.e.
<FORM id="Form1" method="post" runat="server" encType="multipart/form-data"> --
Regards

Tim Stephenson MCSD.NET
Charted MCAD & MCSD.NET Early Achiever

Nov 17 '05 #3
One option would be to find out how many boxes the user requires, and then
dynamically add the right number of boxes to the host form or panel using
[container].controls.add(mynewfilecontrol)

You would then need to iterate through the filecontrols and process each
one's file upload in turn.
--
Regards

Tim Stephenson MCSD.NET
Charted MCAD & MCSD.NET Early Achiever
"Kenneth Keeley" <ke*******@hotmail.com.nowhere> wrote in message
news:eb**************@tk2msftngp13.phx.gbl...
No that part is OK the problem is how to submit the number of files the
person wants to upload and then dynamically make the page have that many
file input boxes and captions before the page gets submitted to the Web
site.

"Tim Stephenson" <ti************@archant.co.uk> wrote in message
news:ul*************@TK2MSFTNGP10.phx.gbl...
If by "not been able to make the file input boxes work" you mean that the file doesn't seem to be uploaded, make sure you've changed the page's form tag's encType to multipart/form-data.

i.e.
<FORM id="Form1" method="post" runat="server"

encType="multipart/form-data">
--
Regards

Tim Stephenson MCSD.NET
Charted MCAD & MCSD.NET Early Achiever


Nov 17 '05 #4

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

Similar topics

4
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the...
6
by: allyn44 | last post by:
HI--what I am trying to do is 2 things: 1. Open a form in either data entry mode or edit mode depending on what task the user is performing 2. Cancel events tied to fields on the form if I am in...
1
by: meganrobertson22 | last post by:
hi everybody- what is the best way to add data from one form to another? i have 2 tables: person and contract. here are some of the fields. table: person personid (autonumber and primary...
3
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table...
7
by: h7qvnk7q001 | last post by:
I'm trying to implement a simple server-side form validation (No Javascript). If the user submits a form with errors, I want to redisplay the same form with the errors highlighted. Once the form...
2
by: devine | last post by:
Hi All, I am trying to send an automatic email when an update has been made. My update statement will updates 6 fields, and dependant on one of the fields, I would like to send an email using CDO....
2
by: Cerebral Believer | last post by:
Hi folks, Can anyone help me with this form: http://futurebydesign-music.com/_member/club_fbd_reg.php I have followed to coding instructions aas closely as I can, but I am getting errors...
0
by: hellopraveen30 | last post by:
Here is my form lap and i want to submit data of this form to another form ("http://www.lapkokcasuals.net/jobs/Apply.aspx") without going their how can i do it ihave written these code below data is...
2
by: adwest | last post by:
Forgive me if this is a foolish question. I "play" in Access and have only created a few rather simple relational databases. My knowledge and experience is limited. I have no formal training, just...
3
by: ibeehbk | last post by:
Hi. I have a form made in xhtml. I test via vbscript to make sure none of the fields are empty and properly formatted (ie email). All the regular fields work. However, I have two drop down menus...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.