2017年8月22日

sql查询某年某月的数据

摘要: USE [Dormitory ]GO SELECT [Eid] ,[Erid] ,[Eletoday] ,[Eledate] FROM [dbo].[Electricity] where year([Eledate])=2017 某年GO where month([Eledate])=3 某月 阅读全文

posted @ 2017-08-22 10:03 A欣 阅读(763) 评论(0) 推荐(0) 编辑

2017年8月11日

去除alert网址标题

摘要: window.alert = function (msg, callback) { var div = document.createElement("div"); div.innerHTML = "<style type=\"text/css\">" + ".nbaMask { position: 阅读全文

posted @ 2017-08-11 16:24 A欣 阅读(906) 评论(0) 推荐(0) 编辑

2017年8月8日

aspnetpaper分页

摘要: if (!IsPostBack) { try { this.AspNetPager_openlog.RecordCount = (int)bot.GetRecordCount("");//注意此处不要遗漏 BindData(); } catch { } } protected void AspNet 阅读全文

posted @ 2017-08-08 15:37 A欣 阅读(150) 评论(0) 推荐(0) 编辑

jquery ajax

摘要: .getJSON('../Ajaxload/UptateDoor.ashx?date=' + new Date()+'&sate=1'+'&room='+no, function (st) { if(st.con =="open") { var elein = document.getElement 阅读全文

posted @ 2017-08-08 15:32 A欣 阅读(127) 评论(0) 推荐(0) 编辑

iframe子界面调用父级界面元素值

摘要: var no = window.parent.document.getElementById("setint").value; 阅读全文

posted @ 2017-08-08 15:29 A欣 阅读(138) 评论(0) 推荐(0) 编辑

2017年8月2日

asp.netcheckBox添加绑定属性,后台获取

摘要: 前台 <asp:CheckBox ID="CheckBox1" runat="server" Value ='<%#Eval("Uid")%>' OnCheckedChanged ="userstate_CheckedChanged" /> 后台获取 protected void userstate 阅读全文

posted @ 2017-08-02 18:42 A欣 阅读(222) 评论(0) 推荐(0) 编辑

2017年7月27日

后台订阅前台无刷新显示

摘要: 后台 //创建客户端实例 MqttClient client = new MqttClient(IPAddress.Parse(mqttcon.addressip)); client.MqttMsgPublishReceived += client_MqttMsgPublishReceived; s 阅读全文

posted @ 2017-07-27 15:12 A欣 阅读(166) 评论(0) 推荐(0) 编辑

用js实现关闭页面后台事件

摘要: 前台代码: window._onbeforeunload = function(){ $('txtrefchild').click(); return true;} 后代代码: protected void txtrefchild_Click(object sender, EventArgs e){ 阅读全文

posted @ 2017-07-27 11:41 A欣 阅读(1346) 评论(0) 推荐(0) 编辑

2017年7月20日

bootstrap使用iframe

摘要: <!-- 16:9 aspect ratio --> <div class="embed-responsive embed-responsive-16by9"> <iframe id ="mframe" class="embed-responsive-item" src=""></iframe> < 阅读全文

posted @ 2017-07-20 13:59 A欣 阅读(7371) 评论(0) 推荐(1) 编辑

主界面用js url传值到iframe 后台接收

摘要: 主界面 function OnladNo(No) { $('iframe').attr('src', 'PageContext.aspx?id='+No); } iframe界面 string NO = Request.QueryString["id"].ToString(); 阅读全文

posted @ 2017-07-20 10:57 A欣 阅读(1302) 评论(0) 推荐(0) 编辑

导航