...
...
Dim dr As DataRow For Each dr In ds.Tables(0).Rows 'ds是DataSet
dr("Type").ToString().Replace(Keyword, "<font color=red>" + Keyword + "</font>")
dr("Title").ToString().Replace(Keyword, "<font color=red>" + Keyword + "</font>")
Next SearGrid.DataSource = ds.Tables(0)
SearGrid.DataBind()
...
Dim dr As DataRow For Each dr In ds.Tables(0).Rows 'ds是DataSet
dr("Type").ToString().Replace(Keyword, "<font color=red>" + Keyword + "</font>")
dr("Title").ToString().Replace(Keyword, "<font color=red>" + Keyword + "</font>")
Next SearGrid.DataSource = ds.Tables(0)
SearGrid.DataBind()
解决方案 »
- asp.net自带的上传控件到底最大可以传多大的文件?
- 高分求解小问题:如何将服务端带~号的url地址转换为客户端的url地址
- 自定义模板的数据绑定的GridView如何实现翻页功能?急!高分!
- Web.config该放在网站文件夹的什么位置?
- .Net的WebService在官方网上为什么会停止注册UDDI呢?那我想在互联网上布署和发布WebService该怎么做?
- .net 中截取发表的文章的一部分文章的代码怎么写
- entity framework saveChange如何知道它的影响行数呢?或是添加成功?
- visual studio新建的htm文件都默认编码都是UTF8我想改成GB2312怎么改?
- 请高手请教关于URL地址简化问题?
- 怎样让我的IIS支持Asp.Net?
- 帮我看看是否有数据返回?repeater.databind 就剩下10分了。
- datagrid分页问题:.......
dr("Title") = dr("Title").ToString().Replace(Keyword, "<font color=red>" + Keyword + "</font>")