04 2013 档案
摘要:<?xml version="1.0" encoding="utf-8"?><!--element, attribute, text, namespace, processing-instruction, comment, and document (root) nodes.--><!-- 不能放在本文的第一行 --><?xml-stylesheet type="text/xsl" href="simple.xsl"?><!-- processing-instr
阅读全文
摘要:在.net中发送 xml post请求和接受xml 的post请求时,经常会遇到“远程服务器返回错误: (500) 内部服务器错误”。这里有2种解决办法: 第一种方法:修改请求端Content-Type 为“text/xml”(httpclient.Headers.Add("Content-Type", "text/xml");)第二种方法:在我们平常开发异步接口的时候,往往需要开发一个windows service用来发送post请求(可以调用第一种方法);另外需要提供一个web接收端接收对方的异步调用。当接收的post数据是xml时,对方调用你的提供
阅读全文
摘要:1.send: C# codeWebRequest myHttpWebRequest = WebRequest.Create("http://abc.com/xxx.aspx");// Set the 'Method' property of the 'Webrequest' to 'POST'.myHttpWebRequest.Method ="POST";// Create a new string object to POST data to the Url.string postData =@&qu
阅读全文
摘要:1,SQL like对时间查询的处理方法SQL数据表中有savetime(smalldatetime类型)字段,表中有两条记录,savetime值为:2005-3-8 12:12:00和2005-6-6 14:02:02 我用下面语句什么也搜不出来 select * from soft where soft.savetime like'%2005-3-8%' SQL帮助中说: "当搜索 datetime 值时,推荐使用 LIKE,因为 datetime 项可能包含各种日期部分。例如,如果将值 19981231 9:20 插入到名为 arrival_time 的列中,则
阅读全文
摘要:aspx网页以HTML形式存储的几个方法第一种是模版替换:环境:Microsoft .NET Framework SDK v1.1 OS:Windows Server 2003 中文版ASP.Net生成静态HTML页在Asp中实现的生成静态页用到的FileSystemObject对象!在.Net中涉及此类操作的是System.IO 以下是程序代码 注:此代码非原创!参考别人代码 //生成HTML页public static bool WriteFile(string strText,string strContent,string strAuthor){string path = HttpCo
阅读全文
浙公网安备 33010602011771号