0
所以我有这个代码来填充选择下拉使用VBScript不工作任何帮助将是伟大的。我也认为这个回应不应该被使用。使用sql数据填充下拉使用VBScript
Set myConn = CreateObject("ADODB.Connection")
Set rec = CreateObject("ADODB.RecordSet")
With myConn
.Provider = "SQLOLEDB"
.Properties("Data Source") = "**"
.Properties("Initial Catalog") = "***"
.Properties("User ID") = "**"
.Properties("Password") = "**"
.Open
End With
queryEmp = "SELECT Name as FN FROM dbo.Employee where Active='True'"
rec.open(queryEmp,myConn)
Do Until rec.EOF
msgBox = rec.Fields("FN")
strExample = rec.Fields("FN")
response.write "<OPTION>" & strExample & "</OPTION>"
End If
rec.MoveNext
Loop
客户端或服务器端脚本? –
不使用asp。静态网页 – Warhead