ASKER
ASKER
ASKER
ASKER
Set rs = cn.Execute("Select Procode, Proname, Price from Stock")
<table id="myTable" style="cursor: pointer" class="one" Width="100%">
Set rs = cn.Execute("Select Procode, Proname, Price from Stock")
%>
<table id="myTable" style="cursor: pointer" class="one" Width="100%">
Also, on your last post you are not calling rs.MoveNext. 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>
<td><%Response.Write(rs("Procode")%>)</td>
<td><%Response.Write(rs("Proname"))%></td>
<td><button class="Addbutton">myButton</button></td>
<td><%Response.Write(rs("Price"))%></td>
</tr>
<%
rs.MoveNext
loop
rs.close
cn.close
%>
</table>
ASKER
<div id="Win" class="my-overflow">
<%
dim cn, rs
Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
cn.ConnectionString = "driver={SQL Server};server=MYSERVER;uid=;pwd=;database=MyDB"
cn.Open
Set rs = cn.Execute("Select Proname, Procode from STOCK")
%>
<table id="myTable" style="cursor: pointer" class="one" Width="100%">
<%do until rs.EOF%>
<tr>
<td><button class="Addbutton" onclick="return iFunction()">Add</button></td>
<td><%Response.Write(rs("Procode"))%></td>
<td><%Response.Write(rs("Proname"))%></td>
</tr>
<%
rs.MoveNext
Loop
rs.close
cn.close
%>
</table>
</div>
ASKER
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
ASKER