摘要: 从另一个页面加载数据到当前页面 一般处理程序 context.Response.ContentType = "... 阅读全文
posted @ 2017-11-29 17:08 enych 阅读(112) 评论(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 阅读(4952) 评论(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 阅读(153) 评论(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 阅读(409) 评论(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 阅读(16339) 评论(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 阅读(3916) 评论(0) 推荐(0) 编辑
摘要: 定义一个pagebase类 继承page 其它页面继承这个pagebase 页面加载验证cookies是否存在 不存在跳转到登录界面 阅读全文
posted @ 2017-11-21 17:22 enych 阅读(321) 评论(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 阅读(383) 评论(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) 编辑