dataset.writexml不显示超链接 [英] dataset.writexml not displaying hyperlinks

查看:76
本文介绍了dataset.writexml不显示超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

能解释为什么dataset.writexml无法正确显示超链接吗?而是显示一些垃圾字符

问候
解决方案

在确认数据看上去正确地适合将其写入物理文件之前,我不会下结论说WriteXml是问题所在.例如,我们有一个DataSet,其中第一个表具有一列,其中包含称为Link的超链接.遍历行并将其显示到IDE控制台,确定它们看起来是否正确,即

 对于 每个 DataRow 在DataSet1.Tables( 0 )中.行
    Console.WriteLine(row.Field( Of  字符串)( " ))
下一步 



如果此时的链接有垃圾,那么您就有数据库问题,我会怀疑问题出在WriteXml方法上.


Hello Glimmerman,

感谢您的回复.

是否可以从mysql数据库中选择该列作为链接​​


Hello All,

Can any explain why dataset.writexml not displaying hyperlinks properly? Instead its displaying some junk characters

regards
Azeem

解决方案

I would not jump to conclusions that WriteXml is the problem until you verify that the data appears correctly proper to writing it to a physical file. For example, we have a DataSet where the first table has a column holding hyperlinks called Link. Run thru the rows and display them to the IDE console, determine if they look correct i.e.

For Each row As DataRow In DataSet1.Tables(0).Rows
    Console.WriteLine(row.Field(Of String)("Link"))
Next



If the links at this point have junk then you have a database issue, I would doubt the problem is with the WriteXml method.


Hello Glimmerman,

Thanks for the response.

Is it possible to select the column as link from the mysql database


这篇关于dataset.writexml不显示超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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