标题:[求助]通不过编译呀
只看楼主
垃圾的沉默
Rank: 1
等 级:新手上路
威 望:2
帖 子:511
专家分:0
注 册:2007-6-25
 问题点数:0 回复次数:1 
[求助]通不过编译呀

sub DataBind()
if Application("title")="" then
ta1.Visible="true"
ta1.text="请输入查询条件"
else
thetit = Application("title").ToString().Trim
Dim qurStr As String
Dim intlen As Integer = thetit.Length()
Dim i As Integer
Dim Ss As String
For i = 0 To intlen
If i < intlen Then
i = i + 1
End If
Ss=Ss & thetit[i].ToString() & "%"
Next
sql = "select * from tablename where title like '%" + Ss + "'"

Dim cnn As OleDbConnection
Dim cmd As OleDbDataAdapter
Dim dt As New DataSet
strcnn = "provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("./database/query.mdb")
cnn = New OleDbConnection(strcnn)
cnn.Open()

cmd = New OleDbDataAdapter(sql, cnn)
cmd.Fill(dt)
repeater1.DataSource = dt
repeater1.DataBind()
cnn.Close()
End If
end sub

搜索更多相关主题的帖子: 编译 
2007-06-27 15:34
bygg
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:乖乖的心中
等 级:版主
威 望:241
帖 子:13555
专家分:3076
注 册:2006-10-23
得分:0 

错误信息..


飘过~~
2007-06-28 09:16



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-150756-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.339350 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved