We help IT Professionals succeed at work.
Get Started

Insert Button on a table

Whing Dela Cruz
on
203 Views
Last Modified: 2017-03-08
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>
Comment
Watch Question
CERTIFIED EXPERT
Expert of the Year 2008
Top Expert 2008
Commented:
This problem has been solved!
Unlock 4 Answers and 16 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE