How To Post a Dynamic String Array from the Client to an ASP (198808)
The information in this article applies to:
- Microsoft Active Server Pages
- Microsoft Visual InterDev 6.0
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Server 5.0
This article was previously published under Q198808 SUMMARY
This article describes how to submit a dynamic string array from the client to an ASP page. Normally, if you have a fixed-length string array for submitting this to the server, you can create a form with some hidden fields in it, whose value is set to different strings in the array. The number of hidden fields defined in the form will be equal to the number of elements in the array.
However, if the number of elements in the array is not known beforehand (that is, if you are using a dynamic array), you won't be able to use a pre-defined form because the number of hidden fields to be used is unknown while coding the HTML page.
This example shows how to create a form dynamically depending on the number of elements in the array and then submit the data to the server.
Modification Type: | Minor | Last Reviewed: | 7/16/2004 |
---|
Keywords: | kbCodeSnippet kbhowto KB198808 |
---|
|