View Single Post
Old Dec 1st, 2006, 5:24 PM   #3
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
Hmm. I think it could be the For Each traversing the collection in an arbitrary order. What happens if you use a For loop, like:

For I = 1 To objSomeCollection.Count
    strResult = strResult & objSomeCollection.Item(I).Value & "<BR>"
Next

Sorry this isn't exactly what you're doing but I haven't done a lot with ASP; hope you get what I mean. I'm not sure if this will help; it won't help if the problem is the browser returning the fields in some arbitrary order and ASP giving them to you in the order in which it received them (which is also very possible; I don't think any standards have anything to say about the order that these arguments should get posted in).

In fact that's a good point - even if your browser turns out to be returning the arguments in the order you expected, there's a good chance there are browsers out there that don't, so you shouldn't rely on the order. Maybe there's some way you can build the correct order into your script, or even specify it in a hidden form element and pass it back to yourself?
__________________
"I'm not a genius. Why do I have to suffer?"
mackenga is offline   Reply With Quote