注册 登录
编程论坛 ASP技术论坛

Clic Button一点反应也没有,在线等啊。

Kettyjin1983 发布于 2008-01-16 15:08, 967 次点击
我按那个modify Button,想跳到dealmodify页面,可是一点反应也没有,是不是我对Button的按钮写错了,并且想传个参数过去。

     <%        do while not rs.eof
                 autoid = rs("autoid")
                'modify="select"&rs("autoid")
                'response.write     autoid    
            response.write "<tr><td>"&rs("product")&"</td><td>"&rs("XCVR")&"</td><td>"&rs("barcode")&"</td><td>"&rs("phasestatus")&"</td><td>"&rs("Owner")&"</td><td>"&rs("mydate")&"</td>"%>
        <td>
        <input type="button" name="modify" value="modify" onClick="dealmodify.asp&autoid=<% =autoid %>">
        </td>    
            </tr>
        <%
            rs.movenext
            loop
            rs.close
            set rs=Nothing
            conn.Close
            Set conn= Nothing
    end if
%>
2 回复
#2
xmuer2008-01-16 15:18
可以这样写~
<input type="button" name="modify" class="click_edit" value="modify" onClick="window.location='dealmodify.asp?autoid=<%=rs("autoid ")%>';">

[[italic] 本帖最后由 xmuer 于 2008-1-16 15:30 编辑 [/italic]]
#3
Kettyjin19832008-01-16 15:42
真的好了,谢谢LS.
1