943,982 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2439
  • ASP.NET RSS
Jun 27th, 2006
0

Form request help

Expand Post »
ASP.NET Syntax (Toggle Plain Text)
  1. sql = "SELECT * FROM tblcsvdump"
  2. set rs = connection.execute(sql)
  3. records = rs.Fields.Count
  4.  
  5. dim heading(100)
  6. dim pulled(100)
  7. dim i
  8. dim count
  9. dim VAL
  10. dim VEL
  11. i=0
  12. count = 0
  13. for i=0 to records
  14. heading(count) = rs.Fields(count)
  15. response.write(heading(count))
  16. header = heading(count)
  17. '**** THIS ROW HAS ERROR
  18. pulled(count) = Request.Form(header)
  19. count=count+1
  20. next
  21.  

The error i receive is....
The function expects a string as input.


What am i doing wrong guys?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bodikon is offline Offline
12 posts
since Jun 2006
Jun 27th, 2006
0

Re: Form request help

I don't see that any of your variables are typed. Is this VB.NET? Is it loosely typed?
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Jun 27th, 2006
0

Re: Form request help

this is very odd code, so let's start by cleaning it up a little
ASP.NET Syntax (Toggle Plain Text)
  1. sql = "SELECT * FROM tblcsvdump"
  2. set rs = connection.execute(sql)
  3. records = rs.Fields.Count
  4.  
  5. dim heading(100)
  6. dim pulled(100)
  7. dim i
  8. dim VAL
  9. dim VEL
  10.  
  11.  
  12. for i=0 to records
  13. heading(i) = rs.Fields(i)
  14. response.write(heading(i))
  15. header = heading(i)
  16. '**** THIS ROW HAS ERROR
  17. pulled(i) = Request.Form(header)
  18. next
  19.  

now, what line has error?
header = heading(i)
or
pulled(i) = Request.Form(header)
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Where is the table ????
Next Thread in ASP.NET Forum Timeline: Upload a Directory with its Files and subfloders





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC