asp.net - Dynamically Adding Items in DropDownList 1 to N -




i working on e-commerce web site. saving in database how many pieces product. example 5 computers. want is: want call dropdownlist starting 1 5 in count or how many products. how can that. btw dropdownlist in repeater.

<asp:repeater id="rptrurunbilgileri" runat="server" datasourceid="sqldtsourceurunbilgileri">     <itemtemplate>         <div class="row">             <div class="col-md-6 col-sm-12 zoom-gallery sm-margin-bottom-ten">                 <a href="<%#eval("urunresmi1") %>"><img src="<%#eval("urunresmi1") %>" alt=""/></a>                 <div class="products-thumb text-center">                     <a href="<%#eval("urunresmi2") %>"><img src="<%#eval("urunresmi2") %>" alt="" /></a>                     <a href="<%#eval("urunresmi3") %>"><img src="<%#eval("urunresmi3") %>" alt="" /></a>                     <a href="<%#eval("urunresmi4") %>"><img src="<%#eval("urunresmi4") %>" alt="" /></a>                 </div>             </div>             <div class="col-md-5 col-sm-12 col-md-offset-1">                 <span class="product-name-details text-uppercase font-weight-600 letter-spacing-2 black-text"><%#eval("urunadi") %></span>                 <p class="text-uppercase letter-spacing-2 margin-two">stok durumu: <%#eval("stok") %></p>                 <div class="separator-line bg-black no-margin-lr margin-five"></div>                 <p><%#eval("aciklama") %></p>                 <span class="price black-text title-small"><%#eval("fiyat") %> tl</span>                 <div class="col-md-9 col-sm-9 no-padding margin-five">                     <asp:dropdownlist id="dropdownlist1" runat="server"></asp:dropdownlist>                     <asp:linkbutton id="lnkbtnsepeteekle" runat="server" cssclass="highlight-button-dark btn btn-medium button" onclick="lnkbtnsepeteekle_click"><i class="icon-basket"></i> sepete ekle</asp:linkbutton>                 </div>             </div>         </div>     </itemtemplate> </asp:repeater> <asp:sqldatasource id="sqldtsourceurunbilgileri" runat="server" connectionstring="<%$ connectionstrings:aytasarimconnectionstring %>" selectcommand="select [urunid], [urunadi], [stok], [aciklama], [fiyat], [urunresmi1], [urunresmi2], [urunresmi3], [urunresmi4] [urun] ([urunid] = @urunid)">     <selectparameters>         <asp:sessionparameter name="urunid" sessionfield="urunid" type="int32" />     </selectparameters> </asp:sqldatasource> 





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -