本文介绍了从vb后面的代码向jquery发送值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助.

< \ script>
$(function(){
var availableTags
$(; #tags").autocomplete({source:availableTags});

});</script>




如果发回= true

昏暗的sqlSelect作为字符串
将thisName设置为String =""

sqlSelect = SELECT * from表名;

将myConnection设置为新的SqlConnection(tConnectionString)
将myCommand设为新的SqlCommand(sqlSelect,myConnection)
myConnection.Open()
将MyReader昏暗为SqlDataReader
myReader = myCommand.ExecuteReader()

如果是myReader.HasRows然后
而myReader.Read()
thisName = myReader("clomun_name")
结束时
myReader.Close()
myConnection.Close()

如果
结束返回此名称


我有一个带有ID标记的文本框.

我有一个jQuery,它将从变量名称avaliabletags中获取值

但无法执行,请提供帮助.

Please help.

<\script>
$(function() {
var availableTags
$( ";#tags" ).autocomplete({source: availableTags});

});</script>




if post back = true

Dim sqlSelect As String
Dim thisName As String = ""

sqlSelect = SELECT * from tablename;

Dim myConnection As New SqlConnection(tConnectionString)
Dim myCommand As New SqlCommand(sqlSelect, myConnection)
myConnection.Open()
Dim myReader As SqlDataReader
myReader = myCommand.ExecuteReader()

If myReader.HasRows Then
While myReader.Read()
thisName = myReader("clomun_name")
End While
myReader.Close()
myConnection.Close()

end if
return thisname


i have a textbox with id tag.

i have a jquery which would take the values from variable name avaliabletags

but unable to excute please help.

推荐答案




这篇关于从vb后面的代码向jquery发送值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 14:43