I have a pure HTML (.html extension) page that posts to a .aspx page that I need to get the multiple selection from. In PHP, this is handled by simply adding the square brackets to the element name and treating it as an array.
<select name="select[]" multiple>
</select>
<input type="checkbox" name="check[]" />
<?php
foreach ($_REQUEST["check"] as $check) {
// Processing code
}
?>
Is there similar functionality in C#? Or do I have to name every element special? I've been searching online, but everything says to use the HtmlControls or the CheckBoxList classes, which are unavailable because of it being static HTML.
Thanks in advance.