惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy & Cybersecurity Law Blog
V
V2EX
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
S
Secure Thoughts
T
Tenable Blog
Security Latest
Security Latest
The Cloudflare Blog
S
Security @ Cisco Blogs
H
Heimdal Security Blog
aimingoo的专栏
aimingoo的专栏
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
IT之家
IT之家
Latest news
Latest news
The Hacker News
The Hacker News
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
S
Security Affairs
S
Securelist
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
A
About on SuperTechFans

博客园 - 无声雨

远程桌面不能复制粘贴到本地的解决办法 操作文件或者文件夹做硬连接 使用Google Map获取地址坐标 SharePoint2010 安装时报“未能启动数据库服务 MSSQL$Sharepoint"解决办法 解决OracleDBConsoleorcl服务无法启动问题[转帖] oracle10g dbconsole 重建步骤(转帖) 做个记号,VS2008中选择默认环境 SQLServer2005SP2安装时提示KB921896错误 Asp.Net2.0中TreeView使用javascript客户端实现选择节点联动的脚本 WindowsXp系统时services.exe占用内存和CPU资源的问题 EXT中GRID自动适应宽与高 IE6下PNG图片对象以及其作为背景透明的处理 关于韩文等文字存储乱码的问题 EXT中的语言包 Ext中tree的研究 使用ASP生成条形码(转) IE地址栏javascript代码(转) 设置双网卡同时访问内外网 BAT文件的妙用(转)
Grid使用动态数据源的问题
无声雨 · 2008-04-09 · via 博客园 - 无声雨

前几天用XML方式提供数据给GRID,XML右ASP.NET通过ASHX输出,使用了Response.ContentType = "text/plain";结果死活都不成功,直接在IE中输入该地址却能成功读取到数据,又不能调试,郁闷!

搞了半天,后来发现把

Response.ContentType = "text/plain"; 修改成 Response.ContentType = "xml/plain";(好像为“text/xml”更好),尽然成功!也怪自己太不小心了,唉!

PS:GRID使用动态的JSON数据源时,好像只能使用ASPX页面输出,用ASHX却不行,奇怪!
另外注意把ASPX页面多于的脚本清除掉!