摘要: 原文地址:http://blog.chinaunix.net/u3/111819/showart_2197944.htmljQuery获取Select选择的Text和Value:语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text();//获取Select选择的Text3. var checkValue=$(& 阅读全文
posted @ 2012-08-24 14:57 水涧无恒 阅读(171) 评论(0) 推荐(0) 编辑
 
摘要: void Application_BeginRequest(object sender, EventArgs e) { //遍历Post参数,隐藏域除外 if (Regex.IsMatch(Request.RawUrl.ToLower(), @"/manager/") == false) for (int i = 0; i < Request.Form.Count; i++) { if (Request.Form[i].ToString() == "__VIEWSTATE") continue; if (IsDanger(Request.Form[ 阅读全文
posted @ 2011-12-21 23:39 水涧无恒 阅读(1751) 评论(0) 推荐(0) 编辑
 
摘要: 在类里面添加这个方法就OK了 public override void VerifyRenderingInServerForm(Control control) { // Confirms that an HtmlForm control is rendered for } 阅读全文
posted @ 2011-01-11 23:44 水涧无恒 阅读(294) 评论(0) 推荐(0) 编辑
  2016年9月28日
摘要: 使用sql stuff函数 /* stuff(param1, startIndex, length, param2)说明:将param1中自startIndex(SQL中都是从1开始,而非0)起,删除length个字符,然后用param2替换删掉的字符。*/ 示例: select po_no = s 阅读全文
posted @ 2016-09-28 11:35 水涧无恒 阅读(6004) 评论(0) 推荐(0) 编辑
摘要: Create function getGreatCircleDistance(@lat1 decimal(18,11),@lng1 decimal(18,11),@lat2 decimal(18,11),@lng2 decimal(18,11))returns floatasbegin declar 阅读全文
posted @ 2016-09-28 11:28 水涧无恒 阅读(1151) 评论(0) 推荐(0) 编辑
  2013年9月10日
摘要: loadView;This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly.这是当他们没有正在使用nib视图页面,子类将会创建自己的自定义视图层。绝不能直接调用。viewDidLoad;Called after the view has been loaded. For view controllers created in code, this is after -loadView. For 阅读全文
posted @ 2013-09-10 09:38 水涧无恒 阅读(229) 评论(0) 推荐(0) 编辑
  2013年9月8日
摘要: XCode 4.2.1 项目的模版截图:Single View ApplicationThis template provides a starting point for an application that uses a single view. It provides a view controller to manage the view, and a storyboard or nib file that contains the view.最常用的应用模版,XCode 之前版本的 View-Based Application 跟这个最像。刚开始学习HelloWorld 就应该从这 阅读全文
posted @ 2013-09-08 15:06 水涧无恒 阅读(215) 评论(0) 推荐(0) 编辑
  2013年9月6日
摘要: 一、创建UISegmentedControl* mySegmentedControl = [[UISegmentedControl alloc]initWithItems:nil];是不是很奇怪没有指定位置和大小呢?没错,我确实在他的类声明里只找到 initWithItems 而未找到 initWithFrame ,所以他不需要指定,不过我看到了另一个方法,这个方法可以设置Item的宽度:mySegmentedControlsetWidth:100forSegmentAtIndex:0];//设置Item的宽度二、属性mySegmentedControl.segmentedControlSty 阅读全文
posted @ 2013-09-06 14:11 水涧无恒 阅读(345) 评论(0) 推荐(0) 编辑
  2013年2月16日
摘要: 1.zend studio 9可以破解吗?可以的,具体破解步骤查看:http://www.geekso.com/ZendStudio9-key/2.如何将zend studio 9的默认GBK编码设置为其它编码,例如UTF-8?选 择window菜单->Preferences->General->Workspace,在界面当中找到“Text file encoding” 选中Other,在下拉列表中选择UTF-8就可以了。这样所有的建立的项目将使用utf-8的编码。如果想某个项目使用其它编码,选中项目右键点击,在 菜单中选择Preferences,弹出窗口左侧选择“Resou 阅读全文
posted @ 2013-02-16 17:07 水涧无恒 阅读(265) 评论(0) 推荐(0) 编辑
  2013年1月30日
摘要: 1、AspnetUpload地址:http://www.aspnetupload.net/最早接触的上传控件。带进度条,能与系统自带的InputFile控件共用。不过是收费的,而且对Firefox支持较差。最新版本是2.32、FancyUpload - Swiff meets Ajax (v2.0)(开源)地址:http://digitarald.de/project/fancyupload/Falsh上传,Ajax技术,还不错。3、SWFUpload(开源)地址:http://swfupload.org/利用JavaScript/Flash技术,非常成熟,跨平台,支持大多数浏览器。4、这里再 阅读全文
posted @ 2013-01-30 18:13 水涧无恒 阅读(161) 评论(0) 推荐(0) 编辑
  2013年1月17日
摘要: HTML用户名:<input type="text" id="UserAccount" onKeyPress="JumpByEnter(UserPwd)" />密码:<input name="UserPwd" type="password" onKeyPress="IsEnterKeyPress()">JavaScript:JumpByEnter(UserPwd) 函数功能:输入完用户名按回车,焦点转向密码输入框IsEnterKeyPress()功能: 阅读全文
posted @ 2013-01-17 14:13 水涧无恒 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1.文本框只能输入数字代码(小数点也不能输入)<input onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">2.只能输入数字,能输小数点.<input onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value) 阅读全文
posted @ 2013-01-17 11:39 水涧无恒 阅读(219) 评论(0) 推荐(0) 编辑
  2012年12月13日
摘要: 让SQL server "where"条件区分大小写如果想要where条件的内容也区分大小写的话就在where条件后加上 collate Chinese_PRC_CS_AS例如:select *from tbl_message where receiveUname='DreamSea' collate Chinese_PRC_CS_AS 这样如果receiveUname="dreamsea"将查不到数据.collate Chinese_PRC_CS_AS的详解CI 指定不区分大小写,CS 指定区分大小写。AccentSensitivity 阅读全文
posted @ 2012-12-13 11:42 水涧无恒 阅读(566) 评论(0) 推荐(0) 编辑