摘要: //获取日期+时间DateTime.Now.ToString(); // 2008-9-4 20:02:10DateTime.Now.ToLocalTime().ToString(); // 2008-9-4 20:12:12//获取日期DateTime.Now.ToLongDateString().ToString(); // 2008年9月4日DateTime.Now.ToShortDateString().ToString(); // 2008-9-4DateTime.Now.ToString("yyyy-MM-dd"); // 2008-09-04DateTime. 阅读全文
posted @ 2012-10-29 16:24 Tiger覃 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1.如果让本页转向新的页面则用:<input type=button onclick=”window.location.href(‘连接’)“>2.如果需要打开一个新的页面进行转向,则用:<input type=button onclick=”window.open(‘连接’)“><input type=button value=刷新 onclick=”window.location.reload()“><input type=button value=前进 onclick=”window.history.go(1)“><input typ 阅读全文
posted @ 2012-10-25 16:18 Tiger覃 阅读(22824) 评论(0) 推荐(1) 编辑
摘要: 编辑框:1,初始化$('#txtIncidentDescription').omEditor({ height: 60, uiColor: '#BCC5D2', enterMode: OMEDITOR.ENTER_BR, allowImageType: ['jpg', 'gif', 'png', 'bmp'], filebrowserImageUploadUrl: 'http://www.cnblogs.com/Handler/ReportInfoHandler.ashx?Method=Up 阅读全文
posted @ 2012-10-22 09:45 Tiger覃 阅读(883) 评论(0) 推荐(0) 编辑
摘要: javaScript函数中执行C#代码中的函数:方法一:1、首先建立一个按钮,在后台将调用或处理的内容写入button_click中;2、在前台写一个js函数,内容为document.getElementById("btn1").click();3、在前台或后台调用js函数,激发click事件,等于访问后台c#函数;方法二:1、函数声明为public 后台代码(把public改成protected也可以)public string ss(){return("a");}2、在html里用<%=fucntion()%>可以调用前台脚本<script lang 阅读全文
posted @ 2012-10-19 17:18 Tiger覃 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 在Asp.net前台和后台弹出提示框一、在前台弹出提示框1.点击“A”标记或者“控件按钮”弹出提示框<asp:LinkButton ID="lbtnDel" runat="server"OnClientClick='<%# "if(!confirm("你确定退订吗?"))return false;"%>'Text="删除"/>2.方法二:<asp:LinkButton ID="lbtnDel" runat="server 阅读全文
posted @ 2012-10-19 10:08 Tiger覃 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: 1,将自己做的功能模块变成一个个dll,以后有类似的需求直接应用dll即可。2,勤做技术总结,勤写博客,多总结,多积累,最优秀的程序员一定是积累最丰厚的程序员。 阅读全文
posted @ 2012-10-15 20:19 Tiger覃 阅读(130) 评论(0) 推荐(0) 编辑