5 ms·
Instead of just posting the values to the server, why don't you pass the element IDs as well? You can then name your "link" elements with a key substring that m
by primaryobjects 14y ago
Instead of just posting the values to the server, why don't you pass the element IDs as well? You can then name your "link" elements with a key substring that matches the parent element. When you get your postback, you can match the "links" with their parent "step" via the key. This way, you don't rely on the index value in an array. For example:
<input id="step1" />
<input id="step1_link1" />
<input id="step2" />
<input id="step2_link1" />
<input id="step2_link2" />