摘要:
public void SaveExcel() { string fileSource = @"c:\1.xls"; //源文件 using (SaveFileDialog saveFileDialog1 = new SaveFileDialog()) { saveFileDialog1.Title = "另存为"; saveFileDialog1.FileName = "newExcelName.xls"; //设置默认另存为的名字,可选...
阅读全文
posted @ 2014-03-20 10:18
Sophie Huang
阅读(2846)
推荐(0)
摘要:
readxml.ashx中返回json方法: function returnXmlJson(string xmlUrl) { //解析本地xml //XmlDocument xmldoc = new XmlDocument(); //xmldoc.Load(xmlUrl); //解析远程xml文件 WebClient wc = new WebClient(); StreamReader sr = new StreamReader(wc.OpenRead(xmlUrl));//返回string流 ...
阅读全文
posted @ 2013-12-12 18:11
Sophie Huang
阅读(403)
推荐(0)
摘要:
1. 添加命名空间using System.Xml;2. 加载xml方法一:XmlDocument xmlDoc=new XmlDocument();xmlDoc.Load("1.xml");方法二:WebClient wc = new WebClient();//这里获取的是url的形式的xml,所以需要webclientStreamReader sr = new StreamReader(wc.OpenRead(strXML));//返回string流XmlDocument xmlDoc= new XmlDocument();xmlDoc.LoadXml(sr.Read
阅读全文
posted @ 2013-12-11 19:49
Sophie Huang
阅读(814)
推荐(0)
摘要:
从w3c看到的例子,自己测试了一下。ok。js解析xml,暂时没有找到可以跨域的办法。跨域的话,只能通过后台去写。javascript页面 Get xml information1.xmlthis is titlethis is content2013-12-10 13:50:44
阅读全文
posted @ 2013-12-11 19:41
Sophie Huang
阅读(415)
推荐(0)
摘要:
先上传转载自http://www.cnblogs.com/qingyuan/archive/2010/07/13/1776282.html的一些js验证。(未一一测试)JS验证Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/** * 2010-7-13 * 贺 臣 * 情 缘 * js各种表单数据验证 *//*******************************************************************
阅读全文
posted @ 2013-10-21 11:18
Sophie Huang
阅读(586)
推荐(0)
摘要:
无标题文档//此处引入自己路径下的jquery.js这是div1的内容返回到指定的位置
阅读全文
posted @ 2013-09-29 15:49
Sophie Huang
阅读(6318)
推荐(0)
posted @ 2013-09-29 15:19
Sophie Huang
阅读(795)
推荐(0)
摘要:
使用onblur和onfocus属性:
阅读全文
posted @ 2013-09-29 15:12
Sophie Huang
阅读(538)
推荐(0)
摘要:
为网站自定义错误页,在web.config中配置customErrors 节点。mode=On|Off|RemoteOnly;三选一,On表示使用自定义页,Off表示不使用,即使用的是默认的错误页,RemoteOnly表示在本机上显示程序的错误信息,而远程客户端显示的是自定义的错误页。statusCode="404",即是“找不到页面”错误,404.html是自己写的html页。还可以根据自己的需要添加其他的自定义错误页。 PS:location是用于配置指定的文件夹或文件。path属性若未设置则默认为网站根目录下的所有文件目录及文件。allowOverride="
阅读全文
posted @ 2013-09-18 15:00
Sophie Huang
阅读(406)
推荐(0)
摘要:
1博客园是面向程序员的高品质IT技术学习社区,是程序员学习成长的地方。博客园致力于为程序员打造一个优秀的互联网平台,帮助程序员学好IT技术,更好地用技术改变世界。2derwrwwwr 当同一行的td内容行数不一致时,默认是居中显示td内容。这里valign="top"的作用即是将第一个td的内容“1”置顶。
阅读全文
posted @ 2013-09-18 14:07
Sophie Huang
阅读(656)
推荐(0)