- 博客(9)
- 收藏
- 关注
原创 调用外部webwervice测试
在项目中添加服务引用测试代码: static void Main(string[] args) { ServiceGetWeather.WebServiceSoapClient wwc = new ServiceGetWeather.WebServiceSoapClient("WebServiceSoap");
2016-01-18 15:14:04
737
原创 根据input 单选按钮的是或否来判断显示或隐藏DropDownList
是否验证: 是 否 获取选中value:var CheckIsVerify = $('input:radio[name="isVerify"]:checked').val();根据input 单选按钮的是或否来判断显示或隐藏DropDow
2015-12-04 15:27:11
581
原创 RadioButtonList jquery获取ID和text
获取选择的id和text第1种: var rbtnVoteValue = $("input[name='rbtnVote']:checked").val(); var rbtnVoteText = $("input[name='rbtnVote']:checked").next("label").text();第2种:
2015-12-04 13:13:36
792
转载 type="button"和type="submit"的区别
Submit是专门用于提交表单的Button,与Button的区别主要有两点: type=button 就单纯是按钮功能 type=submit 是发送表单 (1)Submit将表单提交(form.submit())作为其onclick后的默认事件,Button并非如此 (2)表单提交时,所有具有name属性的html输入元素(包括input标签、button标签
2015-11-11 11:05:56
564
原创 在input输入框中回车激活点击按钮事件代码
会议码: 在input文本框中回车,触发点击按钮事件,主要代码:onkeypress="if(event.keyCode==13) {btnValidate.click();return fa
2015-11-11 10:56:52
10749
原创 html中,怎么样才能获得iframe页面里的内容
部分代码: var content = document.getElementById("iframe_FromContent").contentWindow.document.getElementById("txtMeetingName").value;formpanel.aspx页面(主页面): iframe_FromCo
2015-10-13 11:01:22
5406
原创 用<%# DataBinder.Eval(Container.DataItem,"ID")%>显示数据的,标题太长规定字数,多余的用"..."
方法1: 13?DataBinder.Eval(Container.DataItem,"Remark").ToString().Substring(0,13):DataBinder.Eval(Container.DataItem,"Remark").ToString() %>方法2: "> public string ConvertSubString
2015-09-15 14:14:53
909
转载 EasyUI添加Tab页时content链接方式
在使用easyui,当点击左侧导航菜单,使用iframe方式来加载右侧的Tab。 //在右边center区域打开菜单,新增tab function Open(text, url) { if ($("#tabs").tabs('exists', text)) { $('#tab
2015-08-11 17:12:54
2581
转载 No row with the given identifier exists 解决方法
No row with the given identifier exists 解决方法有两张表,a和b.产生此问题的原因就是a里做了关联或者(特殊的多对一映射,实际就是一对一)来关联b.当hibernate查找的时候,b里的数据没有与a相匹配的,这样就会报No row with the given identifier exists这个错.(一句话,就是数据的问题!)
2015-07-31 14:28:09
404
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人