PHP 输出json。 $result = mysql_query($sql); //查询结果 $users=array(); $i=0; while($row=mysql_fetch_array($result,MYSQL_ASSOC)){ $users[$i]=$row; $i+...
分类:
编程语言 时间:
2014-07-07 11:12:16
阅读次数:
293
//绑定GridView每一行中的CheckBoxList protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataCon...
分类:
其他好文 时间:
2014-07-06 23:55:28
阅读次数:
362
QAbstractItemModelQAbstractItemModel是一个抽象类,该抽象类未实现的纯虚方法有QModelIndex QAbstractItemModel::index(int row, int column, const QModelIndex & parent = QModel...
分类:
其他好文 时间:
2014-07-06 13:26:45
阅读次数:
228
var col:int = 6;var row:int = 4;var len:int = col*row;for(var i:int = 0;i<len;i++){ var item:Item = new Item(); item.x = item.width*(i%col); item....
分类:
其他好文 时间:
2014-07-05 21:20:25
阅读次数:
136
在阅读本文之前,我获取gridview某行某列的值一般做法是这样的:row.Cells[3].Text.ToString()。有点傻瓜呵呵在Asp.net 2.0中增加了一个新的数据绑定控件:GridView,其目的用来取代Asp.net1.x中的DataGrid控件。获取GridView中的某列值...
分类:
Web程序 时间:
2014-07-05 16:58:05
阅读次数:
272
Linux下还原数据库代码:
1,创建一个空的数据库cddl
mysql> create database cddl;
Query OK, 1 row affected (0.00 sec)
2,还原数据库
[root@chicago mysqlsoftware]# cd /etc/rc.d/init.d
[root@chicago mysqlsoftware]# cd /etc/rc...
分类:
数据库 时间:
2014-07-04 08:58:17
阅读次数:
301
提到 asp.net mvc 中的分页,很多是在用aspnetpager,和easyui datagrid结合的分页却不多,本文介绍的是利用easyui 中默认的分页控件,实现asp.net mvc分页。easyui datagrid分页要求数据采用的格式 :{total:2,row:[]},在as...
分类:
Web程序 时间:
2014-07-03 20:18:33
阅读次数:
533
row_number() OVER (PARTITION BY COL1 ORDER BY COL2)
--表示根据COL1分组,在分组内部根据 COL2排序,而此函数返回的值就表示每组内部排序后的顺序编号(组内连续的唯一的)
例子一: create table student (id int ,classes int ,score int);
insert into student val...
分类:
其他好文 时间:
2014-07-03 18:33:50
阅读次数:
213
由于项目需要用到树状列表,可以增加成员变量,于是用了第三方RATreeView开元库,头一次使用,安装github上的使用说明和Demo跑了一下,挺满意,增加成员什么的都很简单,和tableview很像是,但是在处理选择的cell时我纠结了一会,用惯了tableview的index:index.row index.section等,猛然接触到RATreeView处理时,不知道该如何办了,下面记...
分类:
其他好文 时间:
2014-07-03 13:34:23
阅读次数:
216
//螺旋输出1-25
public class Sequence {
public static void main(String[] args) {
int n = 5;
// 0:向右,1:向下,2:向左,3:向上
int direction = 0;
// 行,列
int row = 0, col = 0;
int num = 0;
int[] array = new ...
分类:
其他好文 时间:
2014-07-02 09:46:28
阅读次数:
166