<script type="text/javascript">
function DoThings()
{
var txt = txtbox.value;
txt = /* passed info from code behind */
}
$(function() { var Tags=[ txt ]; $("txtbox2").autocomplete({source: Tags});});
</script>
但我想将它移动到页面。即时通讯不知如何发送变量“TXT”到我的jQuery功能Javascript传递变量到Jquery
是你的问题,关于如何分配var txt值来服务器端变量? – deostroll