Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 6th, 2006, 09:33 AM
Friend of Wrox
 
Join Date: May 2005
Location: , , .
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default upload in asp.net

Hi,
I had a table for my pictures to upload.
when modifying them I used one form for each row to retrieve that row data and put a hidden value for that row
but how can I do this in asp.net
because asp.net does not accept more than 1 form?
here was the code:
 <FORM name=form1 action=add.asp?mode=useralbum method=post encType=multipart/form-data>
     <INPUT type=hidden value="0" name=pic>

                <TD align=middle width=196 bgColor=#bdd3ef><IMG src="noimage_male.gif" width=100 height=80 border=1>
                <BR>&nbsp;&nbsp;&nbsp;#1<BR>
                 <INPUT type=file size=15 name="File1" class=field><BR>
                 <INPUT type=submit value="Upload" name=submit class=field></TD></FORM>



  <FORM name=form2 action=add.asp?mode=useralbum method=post encType=multipart/form-data>
     <INPUT type=hidden value="0" name=pic>

                <TD align=middle width=196 bgColor=#bdd3ef><IMG src="noimage_male.gif" width=100 height=80 border=1>
                <BR>&nbsp;&nbsp;&nbsp;#2<BR>
                 <INPUT type=file size=15 name="File1" class=field><BR>
                 <INPUT type=submit value="Upload" name=submit class=field></TD></FORM>

 
Old September 6th, 2006, 11:17 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Are you asking how to upload multiple files?

"The one language all programmers understand is profanity."
 
Old September 6th, 2006, 12:57 PM
Friend of Wrox
 
Join Date: May 2005
Location: , , .
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default

no I can upload files.
but when to get the files( for example 10 files) on a page.
get all these info,see all the pictures and below the picture have the upload form to upload that picture again and modify that.

 
Old September 6th, 2006, 01:26 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Do it the same way, just use one form instead of 2; you can have multiple Input File boxes in a web form you just have to reference them in code.

"The one language all programmers understand is profanity."




Similar Threads
Thread Thread Starter Forum Replies Last Post
life upload asp.net Patrick19 VB.NET 0 April 14th, 2005 07:21 AM
file upload in ASP.net problem lpastor ADO.NET 1 September 15th, 2004 08:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.