一、界面:二、数据库访问类: 1 public class DataClass 2 { 3 private readonly string connect = ConfigurationManager.AppSettings["connectString"]; 4 ...
Qt 读取txt文本乱码问题2015-05-20 15:46方法一:使用QString的fromLocal8Bit()函数复制代码QFile txtfile(filePath); QString tmpStr; if(txtfile.open(QIODevice::ReadOnly)) { ...
分类:
其他好文 时间:
2015-05-22 14:45:48
阅读次数:
241
Readonly和Disabled它们都能够做到使用户不能够更改表单域中的内容。但是它们之间有着微小的差别,总结如下: Readonly只针对input(text / password)和textarea有效,而disabled对于所有的表单元素都有效,但是表单元素在使用了disabled后,当我们...
分类:
其他好文 时间:
2015-05-21 12:13:50
阅读次数:
151
1、iPhone 系统版本
1. UIDevice
@interface UIDevice : NSObject
+ (UIDevice *)currentDevice;
@property(nonatomic,readonly,retain) NSString *name; // 设备名称
@property(nonatomic,readonly,r...
分类:
移动开发 时间:
2015-05-20 18:29:49
阅读次数:
155
提出问题:在收货系统中,常常要用到扫描枪扫描条码输入到TextBox,当条码无法扫描时,需要手工输入。如果是扫描枪输入时,我们将自动去判读条码,而手工输入时,最终需要加按回车键确认后判读条码。这时候我们就要判断输入设备是手工还是扫描枪。尝试的方法:1.将TextBox属性设为ReadOnly=tru...
test>use adminswitched to db adminadmin>db.addUser('yshy','yshy'){ "user" : "yshy", "readOnly" : false, "pwd" : "2059c25b25df531e...
分类:
数据库 时间:
2015-05-16 11:49:48
阅读次数:
136
如何禁用文本框 解决思路: 设置文本框的 disabled 或 readonly属性为true 即可。 具体步骤:代码示例: 技巧:readonly="true" 可以直接写为 readonly, disabled ="true" 可以直接写为disabled。 特别提示 代码运行后,鼠标分别移到....
分类:
其他好文 时间:
2015-05-15 17:28:26
阅读次数:
102
报错时的使用:@Html.TextBoxFor(m => m.FileName, new { style = "width:457px;", @readonly = "readonly" })选择修改后的使用:@Html.TextBoxFor(m => m.FileName, new { style...
分类:
Web程序 时间:
2015-05-14 16:14:08
阅读次数:
147
public static class IdCardHelper { static readonly int[] Weight = new int[] { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 }; ...
分类:
其他好文 时间:
2015-05-13 21:12:01
阅读次数:
129
文本框有readonly属性,直接设置;下拉框没有readonly属性,也不能通过其他属性进行只读的设置,下拉框只有disabled属性,但是这个属性设成true之后,值就获取不到了;我在网上搜了一下,大部分是控制鼠标、键盘事件,来控制只读的(即:不让下拉框获取焦点)代码如下:其中onmousem....
分类:
Web程序 时间:
2015-05-13 12:42:06
阅读次数:
181