11 2017 档案
摘要:var xhr1 = function () { if (typeof XMLHttpRequest != 'undefined') { return new XMLHttpRequest(); } }(); var xhr2 = (function () { if (typeof XMLHttpR
阅读全文
摘要:layer.closeAll(); //疯狂模式,关闭所有层 layer.closeAll('dialog'); //关闭信息框 layer.closeAll('page'); //关闭所有页面层 layer.closeAll('iframe'); //关闭所有的iframe层 layer.clos
阅读全文
摘要:从另一个页面加载数据到当前页面 一般处理程序 context.Response.ContentType = "...
阅读全文
摘要:select * from info where typeid= 1 and xxx is NOT null select * from info where typeid= 1 and xxx is null
阅读全文
摘要: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 的个数 显示一个表 默认升序 [第一个是...
阅读全文
摘要:<div> <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="上传" /> </div>
阅读全文
摘要: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") ; //不知道为啥不可用 ----- ...
阅读全文
摘要: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...
阅读全文
摘要:定义一个pagebase类 继承page 其它页面继承这个pagebase 页面加载验证cookies是否存在 不存在跳转到登录界面
阅读全文
摘要:protected void Button1_Click(object sender, EventArgs e) { string pwd = TextBox2.Text.Trim(); Response.Write(JMMD5A(pwd) + "{}" + JMMD5B(pwd)); } public static string ...
阅读全文
摘要:检测有潜在的危险 在配置文件中就加入 和 aspx文件中加入 ValidateRequest="false"
阅读全文
摘要:<div> <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="上传" /> </div>
阅读全文
摘要:全局程序文件Global.asax中 void Session_Start(object sender, EventArgs e) { //页面被访问 只执行一次同 向cookes写入数据 (该cookies有效期在浏览器关闭前) //执行sql语句插入数据. string sql = "update Table_1 set B=...
阅读全文
摘要:if (!Page.IsPostBack) { string sql = "select * from InfoType"; DataTable dt = SqlHelp.ExecuteDataTable(sql); string js = "",ss = ""; for (int i...
阅读全文
摘要: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...
阅读全文
摘要:上面是aspx代码 下面是对应的cs代码 使用需要sqlhelp 类库 对应的命名空间 using DAL; 看了好多大神的代码 好复杂 自己结合repeater控件的学习 研究了一翻 AlwayShow=true 总显示分页控件 CurrentPageIndex =1 当前页的索引 FirstPa
阅读全文