by 好大一小白
2013.9.11 11:30
C#使用API去掉生成xml的默认声明,文件BOM头等无效信息
[更多...]
by 好大一小白
2010.5.2 12:39
希望将数据置为一种更结构化的形式,如置于一个XML文档中。
这里介绍.NET中常用的两种生成XML的方法:(用string拼XML的方法就不介绍了)
例如有数据:
名字
电话
Tim
999-888-0000
Newman
666-666-6666
Harold
777-555-3333
使用XmlWriter为这个表创建XML:
XmlWriterSettings settings = new XmlWriterSettings();
 ...
[更多...]
by 好大一小白
2010.5.2 12:30
这里主要解决firefox浏览器中的服务器请求失败"411Error"问题和ajax乱码问题.
首先,一般ajax代码:
function newXMLHttpRequest() {
var xmlreq = false;
if (window.XMLHttpRequest) {
xmlreq = new XMLHttpRequest();
} else if (window.ActiveXObject) {
try {
xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e1) {
&nb...
[更多...]
by 好大一小白
2010.4.24 13:22
这里主要解决firefox浏览器中的服务器请求失败"411Error"问题和ajax乱码问题.
首先,一般ajax代码:
function newXMLHttpRequest() {
var xmlreq = false;
if (window.XMLHttpRequest) {
xmlreq = new XMLHttpRequest();
} else if (window.ActiveXObject) {
try {
xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e1) {
&nb...
[更多...]