Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone familiar with aspupload

Status
Not open for further replies.

csphard

Programmer
Apr 5, 2002
194
0
0
US
I want to get the name of the control using Item.Name.

However I am not using for Each Item in Upload.Form

I am looping through to get the total nubmer of controls and then looping through that many times to read the information

example

for ix = 1 to controltotal

Therefore I can do the following
value = upload.form(ix)

My question is how do I get the name of the control. I want this because I have name the controls with the key.

this does not work

name = Upload.form(ix)(Item.Name)

How do I get the name when I am passing in a number to iterate through the controls

for ix = 1 to controltotal

idvalue = right(Upload.form(ix)(Item.Name),6) ' this does not work
rtvalue = upload.form(ix)

ix = ix + 1

pdate = upload.form(ix)

response.write ix & "<BR>"
response.write " Name is " & idvalue & "<BR>"
response.write " value is " & rtvalue & "<BR>"
response.write " date is " & pdate & "<BR><br>"
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top