troubleshooting Question

Insert Button on a table

Avatar of Whing Dela Cruz
Whing Dela CruzFlag for Anguilla asked on
CSSHTMLASPJavaScript
16 Comments4 Solutions204 ViewsLast Modified:
Hi experts, I wish to insert button on a table while on looping. I want a button to be created between Proname and Price. Is it possible? like the code bellow I want to insert this between Proname and Price <td><button class="Addbutton">myButton</button></td>
                           
Set rs = cn.Execute("Select Procode, Proname, Price from Stock")
<table id="myTable" style="cursor: pointer" class="one" Width="100%">
                              <tr class="header1">
                              <th style="width:2%;">Procode</th>
                              <th style="width:90%;">Proname</th>
                              <th style="width:4%;">myButton</th>
                              <th style="width:4%;">Price</th>  
                           </tr>
                           <%do until rs.EOF%>
                              <tr>
                           <%for each x in rs.Fields%>
                              <td><%Response.Write(x.value)%></td>
                           <%next
                                 rs.MoveNext%>
                              </tr>                
                           <%loop                            
                           rs.close
                           cn.close
                           end if
                        %>
                          </table>
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 4 Answers and 16 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 16 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros