日期:2014-05-19  浏览次数:20354 次

菜鸟想请问高手,如何在前台的vbscript里调用后台控件的值呢??
这是我写的:
<script       language= 'vbscript '>      
    sub   test
dim   str
str=Textbox1.Text;
msgbox   str
end   sub    
    </script>      

这句话肯定不对,
str=Textbox1.Text;
但有怎么写呢?

------解决方案--------------------
document.all( "你的控件的id ").value
------解决方案--------------------
帮你顶一下
------解决方案--------------------
又或者
var txt=document.getElementById( "txtbox1 ");

------解决方案--------------------
document.getElementById( '你的控件id ').value
------解决方案--------------------
太深奥了
------解决方案--------------------
document.getElementById( '控件id ').value