08 2012 档案
摘要://得到cookie值的方法[STAThread] public static string RemoteLogin(string strLoginUrl, string strPostData, string cookieName) { CookieContainer cContainer=new CookieContainer(); byte[] data = System.Text.Encoding.ASCII.GetBytes(strPostData); string bResult = "";HttpWebRequest myreq = (HttpWebReque
阅读全文
摘要:var list = new List<string> {"A", "C", "B", "D", "A", "B", "E", "D", "B", "C"}; var set = new HashSet<string>(list);foreach (string item in set) { Console.WriteLine(item); }
阅读全文
摘要:适用:修改或添加多条记录的存储过程例子:DECLARE @idoc intDECLARE @doc nvarchar(max)SET @doc ='<roots> <root> <id>1</id> <name>a</name> </root> <root> <id>2</id> <name>b</name> </root></roots>'EXEC sp_xml_preparedocument @idoc OU
阅读全文
摘要:最近部署一个web站点 遇到一个奇怪的错误 C:windows/temp下 找不到xxxxx.dll 纠结很久 发现是iis应用程序池权限低引起的 记录一下(ps:.net程序调用java写的webservice时 此问题尤其明显)
阅读全文
摘要:写文档时会遇到需要数据库中表结构的时候 执行一下语句可以轻松导出表结构SELECT 表名=case when a.colorder=1 then d.name else '' end, 字段序号=a.colorder, 字段名=a.name, 标识=case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end, 主键=case when exists(SELECT 1 FROM sysobjects where xtype='PK'
阅读全文

浙公网安备 33010602011771号