当前位置:编程学习 > html/css >>

html 传值

一个静态html页面上的超链接,把这个超链接的值,传递给另外一个页面asp上,如何实现呢?用文本按钮还是get 的方法才能接收值呢?没分了。
答案:<a href="forhckucunexcel.asp?itemname=<%=itemname%>&itemtype=<%=itemtype%>"   style=""target="_blank">跳转到</a>
这样传值 这个页面的itemname和itemtype两个变量的值就传到forhckucunexcel.asp这个asp的页面上了
其他:get方法,加在?问号后面 <a href="forhckucunexcel.asp?itemname=<%=itemname%>&itemtype=<%=itemtype%>"   style=""target="_blank">跳转到</a> 

上一个:.html源码用什么软件打开
下一个:关于html与asp传递数据的问题

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,