FreeMarker的表达式对字符串操作非常灵活,可以将字符串常量和变量连接起来,也可以返回字符串的子串等.字符串连接有两种语法: 1,使用${..}或#{..}在字符串常量部分插入表达式的值,从而完成字符串连接. 2,直接使用连接运算符+来连接字符串例如有如下数据模型: Map root = ne...
分类:
其他好文 时间:
2015-01-12 17:34:18
阅读次数:
255
一.设置配置文件 二.引用程序集首先添加引用,System.Configuration然后再调入命名空间,using System.Configuration;或者直接写,然后ctrl + 点 再引用上也是一样的。三.获取配置文件中的数据//至于...
分类:
Web程序 时间:
2015-01-09 14:09:13
阅读次数:
130
Password=密码;User ID=ID;Data Source=(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ip地址)(PORT = 端口号)) ) (CONNECT_D...
分类:
数据库 时间:
2015-01-09 00:00:10
阅读次数:
409
//在#define中,标准只定义了#和##两种操作。#用来把参数转换成字符串,##则用来连接两个前后两个参数,把它们变成一个字符串。#define Conn(x,y) x##y //连接x,y#define ToChar(x) #@x //加单引号#define ToString(x) #x //...
分类:
其他好文 时间:
2015-01-08 14:55:10
阅读次数:
173
连接字符串1.写法一"Data Source=服务器名; Initial Catalog=数据库; User ID =用户名; Password=密码; Charset=UTF8; "2.写法二"Server=服务器名; Database=数据库; uid=用户名; Password=密码;Char...
分类:
Web程序 时间:
2015-01-08 00:47:46
阅读次数:
289
//使用事务来处理多条数据,如果不成功则回滚public void getCheckListSubmit() { string _conStr = "................";//连接字符串 OdbcConnection _odbcCon = new Od...
分类:
数据库 时间:
2015-01-07 18:24:28
阅读次数:
224
本地连接:string strConnect = "Provider=MSOLAP; Data Source=localhost;Initial Catalog=Analysis Services Tutorial;Integrated Security=SSPI;";网络连接方式:string s...
分类:
数据库 时间:
2015-01-06 15:24:21
阅读次数:
178
根据你安装的驱动,有如下两种连接字符串形式。Provider=DB2OLEDB;Network Transport Library=TCPIP;Network Address=xxx.xxx.xxx.xxx;Initial Catalog=MyCtlg;Package Collection=MyPk...
分类:
数据库 时间:
2015-01-06 11:35:54
阅读次数:
171
首先,强烈推荐>Swaroop, C. H. 著沈洁元 译其实,这本书里已经把python的最基本的用法,编码等等介绍的很好,这里把我用到的进行一下总结。1. 字符串 连接 字符串数组 转义字符Excellent Reference Link :http://www.w3cschool.cc/pyt...
分类:
编程语言 时间:
2015-01-05 21:50:35
阅读次数:
529
Use aspnet_regiis. In command line browse to (usually):
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
and type:
aspnet_regiis -pef "sectionName of web.config" "path" - to encrypt
aspnet_regiis...
分类:
Web程序 时间:
2015-01-05 15:00:50
阅读次数:
149