从vb后面的代码向jquery发送值 [英] send values to jquery from code behind vb

查看:101
本文介绍了从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.

推荐答案

(function(){
var availableTags
(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中获取值

但无法执行,请提供帮助.
( ";#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.


我这是您问题的解决方案..

在ASP.Net中使用jQuery AutoComplete插件

如果您解决了问题,请标记为答案..!

谢谢
I this here is the solution for your question..

Using jQuery AutoComplete Plugin in ASP.Net

Please mark as answer if it solves your problem..!

thanks


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆