上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页

2010年12月10日

摘要: select语句中只能使用sql函数对字段进行操作(链接sql server),select 字段1 from 表1 where 字段1.IndexOf("云")=1;这条语句不对的原因是indexof()函数不是sql函数,改成sql对应的函数就可以了。left()是sql函数。select 字段1 from 表1 where charindex('云',字段1)=1; 字符串函数对二进制数据、字符串和表达式执行不同的运算。此类函数作用于CHAR、VARCHAR、 BINARY、 和VARBINARY 数据类型以及可以隐式转换为CHAR 或VARCHAR的 阅读全文

posted @ 2010-12-10 19:23 严武 阅读(310) 评论(0) 推荐(0) 编辑


2010年11月30日

摘要: {//保存按钮 text:'保存', iconCls:'save', handler:function(){ //单击按钮触发事件 var json = []; for(i=0,cnt=store.getCount();i<cnt;i+=1){ var record = store.getAt(i); if(record.dirty) //得到所有修改过的数据 json.push(record.data); //[{"id":64,"name":"新员工2","sex":&qu 阅读全文

posted @ 2010-11-30 21:48 严武 阅读(242) 评论(0) 推荐(0) 编辑

摘要: ajax get发送测用户名是否存在<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/ 阅读全文

posted @ 2010-11-30 21:46 严武 阅读(355) 评论(0) 推荐(0) 编辑

摘要: 从这个输出中,我们可以看到可执行程序EX10.exe的产生,经过了两个步骤:首先,C++编译器对工程中的三个源文件fish.cpp、animal.cpp单独进行编译(Compiling…)。在编译时,先由预处理器对预处理指令(#include、#define和#if)进行处理,在内存中输出翻译单元(一种临时文件)。编译器接受预处理的输出,将源代码转换成包含机器语言指令的三个目标文件(扩展名为obj的文件):EX10.obj、fish.obj、animal.obj.注意,在编译过程中,头文件不参与编译;在EX10工程的Debug目录下,我们可以看到编译生成的obj文件。接下来是链接过程(Link 阅读全文

posted @ 2010-11-30 21:41 严武 阅读(883) 评论(0) 推荐(0) 编辑

摘要: JS自带函数concat将两个或多个字符的文本组合起来,返回一个新的字符串。var a = "hello";var b = ",world";var c = a.concat(b);alert(c);//c = "hello,world"indexOf返回字符串中一个子串第一处出现的索引(从左到右搜索)。如果没有匹配项,返回 -1 。var index1 = a.indexOf("l");//index1 = 2var index2 = a.indexOf("l",3);//index2 = 3 阅读全文

posted @ 2010-11-30 21:30 严武 阅读(203) 评论(0) 推荐(0) 编辑

摘要: private void MulDelete() { long[] long_id = new long[100]; int[] int_id = new int[100]; int k = 0; for (int i = 0, mk = 0; i < dataGridv_AdminIma.Rows.Count; i++, mk++)//循环遍历DataGridView控件中的每一行 { if (dataGridv_AdminIma.Rows[i].Selected == true) { string s = string.Empty; try { s = dataGridv_Admin 阅读全文

posted @ 2010-11-30 20:52 严武 阅读(2807) 评论(0) 推荐(0) 编辑


2010年11月28日

摘要: http://support.microsoft.com/kb/311315/zh-cnhttp://msdn2.microsoft.com/zh-cn/library/zs3w86y9.aspxhttp://ms.mblogger.cn/acheqi/Rss.aspx?CategoryID=1833下面给出一下具体的步骤。新建一个用户控件向资源文件是添加一张图片,图片格式可以是bm,ico 大小最好是 16 * 16 啦!选中用户控件图标,单击“右键》属性”把 “生成操作 的属性值改为:嵌入的资源(Action Resource) 第四步 [ToolboxBitmap(typeof(CutP 阅读全文

posted @ 2010-11-28 20:56 严武 阅读(389) 评论(0) 推荐(0) 编辑


2010年11月22日

摘要: 1、本实例是完善了codeprofect上面charju老师“Add Group Collapse Behavior on a Listview Control”的一个限制(点击分组后面的图标不能收缩和扩展);2、本实列适用于win2008,vista;3、仅供参考,如有更好的方法,望大家不吝交流~完整代码如下(只需建一个windows工程,在窗体上拖一个listview控件,取名为aoc,右击编辑代码,把下面的代码粘到窗口就可以了~,但需要注意事件对应):using System;using System.Collections.Generic;using System.ComponentM 阅读全文

posted @ 2010-11-22 23:04 严武 阅读(1591) 评论(0) 推荐(0) 编辑

摘要: CodeProject上的源码,供参考http://www.codeproject.com/KB/list/ListviewGroupCollapse.aspxhttp://www.codeproject.com/KB/list/GroupableListView.aspx?display=PrintAll&fid=334060&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=1859985 阅读全文

posted @ 2010-11-22 20:38 严武 阅读(217) 评论(0) 推荐(0) 编辑


2010年11月19日

摘要: ListViewColumnSorter.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;using System.Windows.Forms;namespace Microblue{ class ListViewColumnSorter : IComparer { /**/ /// <summary> /// 指定按照哪个列排序 /// </summary> private int ColumnToS 阅读全文

posted @ 2010-11-19 20:01 严武 阅读(3584) 评论(0) 推荐(0) 编辑


上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页

Copyright © 2024 严武
Powered by .NET 8.0 on Kubernetes