请问在.net中如何将vb的变量值传给javascript里面呢
vb:
texid = objRow(0).Item("tex_id")
hlnews.NavigateUrl = "javascript:openNewWindow('../News/Default.aspx?newsid='& texid,'Agreement',570,480);"
运行后,提示找不到texid
.js里面如下:
function openNewWindow(path, id, width, height)
{
window.open(path,id,"scrollbars=yes,location=no,menubar=no,directories=no,left=2,top=2,toolbar=no,width=" + width + ",height=" + height).focus();
}