11 2017 档案

摘要:var xhr1 = function () { if (typeof XMLHttpRequest != 'undefined') { return new XMLHttpRequest(); } }(); var xhr2 = (function () { if (typeof XMLHttpR 阅读全文
posted @ 2017-11-30 17:53 enych 阅读(361) 评论(0) 推荐(0) 编辑
摘要:layer.closeAll(); //疯狂模式,关闭所有层 layer.closeAll('dialog'); //关闭信息框 layer.closeAll('page'); //关闭所有页面层 layer.closeAll('iframe'); //关闭所有的iframe层 layer.clos 阅读全文
posted @ 2017-11-30 14:26 enych 阅读(15689) 评论(0) 推荐(0) 编辑
摘要:从另一个页面加载数据到当前页面 一般处理程序 context.Response.ContentType = "... 阅读全文
posted @ 2017-11-29 17:08 enych 阅读(116) 评论(0) 推荐(0) 编辑
摘要:select * from info where typeid= 1 and xxx is NOT null select * from info where typeid= 1 and xxx is null 阅读全文
posted @ 2017-11-27 09:49 enych 阅读(4972) 评论(0) 推荐(0) 编辑
摘要:select count(*) from vote group by contents select count(*) from (select TOP 100 PERCENT * from vote order by contents)as A group by contents select * from vote --统计 1 和 2 和 3 的个数 显示一个表 默认升序 [第一个是... 阅读全文
posted @ 2017-11-24 18:03 enych 阅读(154) 评论(0) 推荐(0) 编辑
摘要:<div> <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="上传" /> </div> 阅读全文
posted @ 2017-11-24 12:50 enych 阅读(410) 评论(0) 推荐(0) 编辑
摘要:var lis = $("#doc-topbar-collapse>div>ul>li"); //lis.attr('class', 'hw-menu-active'); // 和 lis.addClass("hw-menu-active"); 一样 lis[0].addClass("hw-menu-active") ; //不知道为啥不可用 ----- ... 阅读全文
posted @ 2017-11-23 15:03 enych 阅读(16357) 评论(0) 推荐(0) 编辑
摘要:use test select * from vote insert into vote (contents) values(GETDATE()) insert into vote (contents,timess,AAA) values ('ss',GETDATE(),GETDATE()) --插入数据时 不能为空值的列名必须 写上, 能为空的可以不写 select AAA from vote... 阅读全文
posted @ 2017-11-23 10:29 enych 阅读(3924) 评论(0) 推荐(0) 编辑
摘要:定义一个pagebase类 继承page 其它页面继承这个pagebase 页面加载验证cookies是否存在 不存在跳转到登录界面 阅读全文
posted @ 2017-11-21 17:22 enych 阅读(324) 评论(0) 推荐(0) 编辑
摘要:protected void Button1_Click(object sender, EventArgs e) { string pwd = TextBox2.Text.Trim(); Response.Write(JMMD5A(pwd) + "{}" + JMMD5B(pwd)); } public static string ... 阅读全文
posted @ 2017-11-21 16:28 enych 阅读(386) 评论(0) 推荐(0) 编辑
摘要:检测有潜在的危险 在配置文件中就加入 和 aspx文件中加入 ValidateRequest="false" 阅读全文
posted @ 2017-11-21 12:04 enych 阅读(383) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2017-11-20 08:53 enych 阅读(11) 评论(0) 推荐(0) 编辑
摘要:ID 次数 ... 阅读全文
posted @ 2017-11-20 08:51 enych 阅读(187) 评论(0) 推荐(0) 编辑
摘要:<div> <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="上传" /> </div> 阅读全文
posted @ 2017-11-20 08:48 enych 阅读(139) 评论(0) 推荐(0) 编辑
摘要:全局程序文件Global.asax中 void Session_Start(object sender, EventArgs e) { //页面被访问 只执行一次同 向cookes写入数据 (该cookies有效期在浏览器关闭前) //执行sql语句插入数据. string sql = "update Table_1 set B=... 阅读全文
posted @ 2017-11-20 08:42 enych 阅读(120) 评论(0) 推荐(0) 编辑
摘要:if (!Page.IsPostBack) { string sql = "select * from InfoType"; DataTable dt = SqlHelp.ExecuteDataTable(sql); string js = "",ss = ""; for (int i... 阅读全文
posted @ 2017-11-16 17:20 enych 阅读(276) 评论(0) 推荐(0) 编辑
摘要:搜索 阅读全文
posted @ 2017-11-15 17:37 enych 阅读(4516) 评论(1) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Net; using System.Web; using System.Web.UI; using System.Web.UI.WebCont... 阅读全文
posted @ 2017-11-14 15:41 enych 阅读(520) 评论(0) 推荐(0) 编辑
摘要:上面是aspx代码 下面是对应的cs代码 使用需要sqlhelp 类库 对应的命名空间 using DAL; 看了好多大神的代码 好复杂 自己结合repeater控件的学习 研究了一翻 AlwayShow=true 总显示分页控件 CurrentPageIndex =1 当前页的索引 FirstPa 阅读全文
posted @ 2017-11-06 12:57 enych 阅读(327) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示