摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><webdiyer:AspNetPager ID="anp1" runat="server" CustomInfoHTML="共有%RecordCount%条记录,共%PageCount%页,当前为第%CurrentPageIndex%页" FirstPageText="第一页" LastPageText= 阅读全文
摘要:
1、在数据库中建立分页存储过程代码2、 在代码生成器生成的DAO代码中加上获取分页数据的方法和计算记录数的方法代码3、 在页面中加入anp控件并设置显示的样式工具箱里 选择项 添加4、 在后台的page_load事件中先设置anp控件的总记录数,再绑定rep控件代码5、 设置anp控件的分页事件直接绑定数据就可以了 阅读全文
摘要:
1、 在根目录建立一个Global.asax文件,烤入一段代码代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> protected void Application_AuthenticateRequest(object SENDER, EventArgs e) { if (HttpContext.Current.User != null) { if (HttpContext.Current.User.Identity.IsAuthenti 阅读全文
摘要:
1: <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("id") %>' OnClientClick="return confirm('是否删除')" OnClick="Del" >删除</asp:LinkButton>//修改同理2:在后台中添加删除方法public void Del(object sender,EventArgs e) { int id = Convert.ToInt32((sender as LinkButton).CommandArgum 阅读全文