| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 556 人关注过本帖
标题:[求助]通不过编译呀
只看楼主 加入收藏
垃圾的沉默
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
快速回复:[求助]通不过编译呀
数据加载中...
 
   



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

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