更新Xml [英] Updating Xml

查看:124
本文介绍了更新Xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Web服务器上有一个Xml文件,隔两天将更新一次.我正在使用XpathDocument和XslCompiled转换来加载和转换文档.很好,效果很好.另外,我还有一组搜索xml文档的下拉列表.但是,当我更改xml文件并重新加载网页时,下拉列表会更改并显示新结果,但是主gridview却没有.

这是缓存问题吗?

I have an Xml file on the web server that I will update every other day. I am using XpathDocument and XslCompiled transform to load and transform the document. This is fine and works great. Also I have a collection of dropdownlists that search the xml document. However when I change the xml File and reload the webpage the dropdownlists change and show new results, but the main gridview doesn''t.

Is this a cache problem? or something else and can it be updated more quickly?

推荐答案

我的猜测是您需要更改网格视图的数据源,或者也许您忘记了之后的数据绑定您更改了数据源.
My guess is you need to change the data source of the grid view, or maybe you forgot to databind after you changed the data source.


这篇关于更新Xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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