上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: jS:<script type="text/javascript" language="javascript"> $(document).ready(function () { $(".pane .delete").click(function () { $(this).parents(".pane").animate({ opacity: 'hide' }, "slow"); }); }); </script>HTML: <div class=&q 阅读全文
posted @ 2012-06-04 13:55 望月狼 阅读(521) 评论(0) 推荐(0)
摘要: <script type="text/javascript" language="javascript"> function IbtnEnter_onclick() { checklogin(); return false; } function checklogin() { if ($("#TxtUserName").val() == "") { alert("用户名不能为空!"); $("#TxtUserName")... 阅读全文
posted @ 2012-06-01 15:06 望月狼 阅读(3695) 评论(0) 推荐(3)
摘要: <%# ((RepeaterItem)Container).ItemIndex + 1 %> 阅读全文
posted @ 2012-06-01 14:57 望月狼 阅读(228) 评论(0) 推荐(0)
摘要: 以前没有注意两者的区别,看博客园的文章,还真引起了我的注意。数据测试:见图sql 语句见分晓:SELECT COUNT(*) c1 ,COUNT(ADDRESS) c2 FROM test显而易见,count(*)统计的是结果集的总条数,count(字段名)统计的是该字段值不为null的总条数 阅读全文
posted @ 2012-06-01 14:54 望月狼 阅读(882) 评论(0) 推荐(0)
摘要: 第一种: <script language="javascript" type="text/javascript"> window.location.href="login.jsp?backurl="+window.location.href; </script>第二种: <script language="javascript"> alert("返回"); window.history.back(-1); </script>第三种: <sc 阅读全文
posted @ 2012-05-31 13:49 望月狼 阅读(356) 评论(2) 推荐(2)
摘要: VS中,我们只要输入模板的名称,然后连按两下TAB,VS就可以给我们把代码片段补充完整。下面列出的这些都是VS2010的预置代码片段,按“两下tab”,自动补全代码,大大提高了开发效率。forfor(int i = 0; i < length; i++){}foreachforeach (var item in collection) {}dodo… while loopwhilewhile (true) {}ifif (true) { }trytry….catch…classclass MyClass{}ctor根据当前的类名生成空构造函数cwConsole.WriteLine()in 阅读全文
posted @ 2012-05-31 12:38 望月狼 阅读(2834) 评论(1) 推荐(0)
摘要: <table cellspacing="0" cellpadding="0" border="0" style="text-align: center; width: 100%; padding: 0; margin: 0; list-style: none; font-size: 16px;"> <tr> <td> <img src="images/li.jpg" alt="" />&nbsp;&nbsp;&a 阅读全文
posted @ 2012-05-30 14:11 望月狼 阅读(644) 评论(0) 推荐(0)
摘要: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["username"] == null || Session["pwd"] == null) { Response.Write("<script>window.top.location.href='login.aspx '</script>"); } } } 阅读全文
posted @ 2012-05-29 13:15 望月狼 阅读(496) 评论(0) 推荐(0)
摘要: /// <summary> /// /// </summary> /// <param name="ds"></param> /// <param name="typeid"></param> /// <param name="FileName"></param> public void CreateExcel(DataSet ds, string typeid, string FileName) { HttpResponse resp; 阅读全文
posted @ 2012-05-28 15:16 望月狼 阅读(336) 评论(0) 推荐(0)
摘要: //Gridview 分页中设置编号列 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //自动编号 e.Row.Cells[4].Text = (float.Parse(e.Row.Cells[4].Text)*100).ToString(); int index = e.Row.RowIndex;//获取当前点击前的行号 if... 阅读全文
posted @ 2012-05-28 15:14 望月狼 阅读(236) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 下一页