摘要: jquery radio取值,checkbox取值,select取值,radio选中,checkbox选中,select选中,及其相关 获取一组radio被选中项的值 var item = $('input[name=items][checked]').val(); 获取select被选中项的文本 阅读全文
posted @ 2017-03-13 03:02 bdf216 阅读(157) 评论(0) 推荐(0) 编辑
摘要: jQuery获取Select选择的Text和Value: 1 2 3 4 5 6 7 8 9 $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 var checkText=$("#select_id").f 阅读全文
posted @ 2017-03-13 02:55 bdf216 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 一、GridControl 的Columns中添加列 1、列名:FieldName命名为img 2、类型:ColumnEdit属性中 选择PictureEdit类型(RepositoryItemPictureEdit) 二、GridControl绑定的数据,不管是DataTable、List或者其他 阅读全文
posted @ 2016-04-21 01:02 bdf216 阅读(4357) 评论(0) 推荐(0) 编辑
摘要: web前端,分享 阅读全文
posted @ 2015-11-13 12:11 bdf216 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 1.添加contextMenuStrip控件 默认命名:contextMenuStrip12.在要显示的控件上,找到其ContextMenuStrip属性,并设置其为contextMenuStrip1比如我这边放在 dataGridView1 控件上,就将dataGridView1的ContextM... 阅读全文
posted @ 2015-01-23 17:47 bdf216 阅读(11653) 评论(0) 推荐(0) 编辑
摘要: 序号姓名性别身高1张三男1852李四女1613王五女1664赵六男1781.获取男生女生人数select count(性别) , 性别 from 表名 group by 性别 结果为 2男 2女2.如果想读取男生女生人数,且显示出来男女生最高的是谁呢?下面这样写是不可以的:消息 8120,级别 16... 阅读全文
posted @ 2015-01-23 14:26 bdf216 阅读(3716) 评论(0) 推荐(0) 编辑
摘要: /// /// 第一行 第二行 /// 第一行 第二行 /// /// public void functionName(int age) { // } ... 阅读全文
posted @ 2014-12-07 15:07 bdf216 阅读(382) 评论(0) 推荐(0) 编辑
摘要: -- 更改字段类型 默认值 alter table 表名 alter column 字段名 类型ALTER TABLE 表名 add DEFAULT ('修改后的默认值') for 字段名 WITH VALUES --注:如果该字段以前已经有默认值了,在修改之前需要先将约束删除,否则会报错 --删约束的SQL: Alter table 表名 drop constraint 约束名 --关于约束名,需要先查一下, --查约束名的SQL: select c.name from sysconstraints a inner join syscolumns b on a.colid=b 阅读全文
posted @ 2014-01-12 17:22 bdf216 阅读(919) 评论(0) 推荐(0) 编辑
摘要: General network error. Check your network documentation. 错误解决方法1. public static string Sqlstr = "Data Source=192.168.1.121;Database=CASDB-302;User ID=sa;Password=123456";//服务器连接参数 本地的要用内网IP地址2.确认SQL数据库配置的 TCP/IP已经启动,确认SQL允许远程访问 阅读全文
posted @ 2013-12-19 22:40 bdf216 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: /// /// 字符串转16进制字节数组 /// /// /// public static byte[] Str_ToHexByte(string hexString) { hexString = hexString.Replace(" ", ""); if ((hexString.Length % 2) != 0) hexString += " "; byte[] returnBytes ... 阅读全文
posted @ 2013-12-10 15:14 bdf216 阅读(412) 评论(0) 推荐(0) 编辑