ASP.net WebForms Repeater fetching post-data -


i using asp.net repeater data-bound ienumerable . in repeater have table. in 1 of columns have html-select 2 available options.

after postback via button have iterate through request.form.allkeys selected options :[

var postedform = request.form.allkeys.where(x => x.startswith("folder"));           <asp:repeater runat="server" id="mainrepeater">             <headertemplate>                 <table>                     <tr>                         <th style="width: 33%; text-align: center; border-bottom: 1px solid #808080;">ordner</th>                         <th style="width: 33%; text-align: center; border-bottom: 1px solid #808080;">aktueller status</th>                         <th style="width: 33%; text-align: center; border-bottom: 1px solid #808080;">ziel status</th>                     </tr>                     </headertemplate>              <itemtemplate>                 <tr>                     <td style="width: 33%; text-align: center; border-right: 1px solid #808080;"><%# eval("domainname") %></td>                     <td style="width: 33%; text-align: center;"><%# eval("status") %></td>                     <td style="width: 33%; text-align: center;">                         <select style="width:200px;" name="folder|<%# eval("itemid") %>">                             <option value="0">nicht gebucht</option>                             <option value="1">gebucht</option>                         </select>                      </td>                  </tr>              </itemtemplate>              <footertemplate></table></footertemplate> </asp:repeater> 

i guess not correct way of doing it. know more correct way fetch selections ?


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -