App_Code.SendMessHelper.SendMessage();这样写会报非静态的字段,方法或属性要求对象引用类里面的方法有兩种表現:一种是直接可以來用的,还有一种是必须实例化以后才能使用的。前者要求在方法生明的時候必須加上static关键字(是不是想起Main方法了???),因爲這個方...
分类:
其他好文 时间:
2014-05-08 19:35:18
阅读次数:
280
http://xiehx163.blog.163.com/blog/static/6146679620096792135505/前几天开始用oracle进行WEB开发。机器装的是tomcat6.0
和oracle10g。项目开发好后,当我启动tomcat服务器,且把oracle10g相应的服务启动时...
分类:
数据库 时间:
2014-05-08 14:35:53
阅读次数:
486
public class JdbcUtil { private static
ComboPooledDataSource dataSource =new ComboPooledDataSource(); public static
ComboPooledDataSource getDataSourc...
分类:
其他好文 时间:
2014-05-08 14:32:39
阅读次数:
218
c# 获取字符串中的数字 /// /// 获取字符串中的数字 /// /// 字符串 /// 数字
例子1: public static decimal GetNumber(string str) { decimal result = 0; if (str
!= null && str != str...
分类:
其他好文 时间:
2014-05-08 13:32:21
阅读次数:
347
java.lang.String.indexOf(char
ch)方法返回字符ch在指定字符串中第一次出现的下标索引位置如果字符ch在指定的字符串中找不到,则返回-1示例:import
java.lang.*;public class StringDemo { public static void....
分类:
编程语言 时间:
2014-05-08 13:02:04
阅读次数:
423
很多网站已经不满足于一级标题的展示,可能很多的时候有二级标题,三级标题等等。
那么如何设置二级标题以及如何把二级标题做的好看呢。
下面的代码中注意:
1.为了让二级标题有渐隐渐现的感觉,用了transition样式
2.二级标题的定位始终是一个困扰我好久的难题。
要确保一级标题有position属性(不能没有也不能设为static),只有一级标题(父级标题)设了position属...
分类:
Web程序 时间:
2014-05-07 23:44:04
阅读次数:
477
static GLint vertices[]={25,25,
100,325,175,25,175,325,250,25,325,325};static GLfloat
colors[]={........};glEnableCli...
分类:
其他好文 时间:
2014-05-07 21:13:39
阅读次数:
295
static class Program { public static
System.Threading.Mutex Run; /// /// 应用程序的主入口点。 /// ...
分类:
其他好文 时间:
2014-05-07 21:01:35
阅读次数:
367
static void shellsort(int a[], int n) {
for (int gap = n / 2; gap >= 1; gap /= 2) {
for (int i = gap; i < n; i++) {
if (a[i] < a[i - gap]) {
int temp = a[i];
int k = i - gap;
w...
分类:
其他好文 时间:
2014-05-07 16:31:06
阅读次数:
272
public class Sort {
static void insertSort(int a[], int n) {
for (int i = 1; i < n; i++) {
if (a[i] = 0 && a[k] > temp) {
...
分类:
其他好文 时间:
2014-05-07 16:15:39
阅读次数:
225