函数的问题
哪位大侠帮偶看看啊,我想通过下面的函数从数据库中取出数值,然后赋值给文本域,可是显示网页有错误1 <script language=vbscript>
2 function CalBalance(TextName)
3 Dim rs, sql
4 Set rs = server.CreateObject("adodb.recordset")
5 sql = "select WorkerID,FirstNum from V2studio_Workers Where WorkerID=2"
6 rs.Open sql, conn, 1, 1
7 TextName.value = rs("FirstNum")
8 rs.Close
9 Set rs = Nothing
10 End function
11 </script>