- 博客(11)
- 收藏
- 关注
转载 js数组的包含方法
if (typeof Array.indexOf !== 'function') { Array.prototype.indexOf = function (args) { var index = -1; for (var i = 0, l = this.length; i < l; i++) { ...
2014-04-17 10:30:00 305
转载 右下角弹出框
$(document).ready(function(){ document.getElementById('winpop').style.height = '0px'; setTimeout("tips_pop()", 800); //3秒后调用tips_pop()这个函数});function tips_pop() { ...
2014-04-09 11:42:00 61
转载 jquery+ashx分页
需要用到的插件jquery.pagination.jshtml<table id="tbAddress"> <tr> <th>姓名</th> <th>参会号码</th> <th>分组</th> </tr&...
2014-04-08 10:55:00 94
转载 设置DropDownList默认选中值
string called = Request.QueryString["Called"].ToString();if (called != "" && called != null && called != "undefined"){ ListItem li = null; li = ddlHotPhone...
2013-12-06 16:36:00 104
转载 .net及SQL操作XML
C#代码:cWay类型是List<ContactWay>XMLContactWayClass wayClass = new XMLContactWayClass();XmlContactWay xmlWay = null;List<XmlContactWay> list = new List<XmlContactWay>();...
2013-12-06 16:28:00 84
转载 Jquery Ajax简单实例
页面结构:<form id="form1" runat="server"> <div> 姓名:<input id="txtName" type="text" /><br /> 邮箱:<input id="txtEmail" type="text" /><br />...
2013-11-06 11:29:00 45
转载 Jquery获取鼠标所在行Index
页面结构:<table id="tb_ConfModerator" class="table table-hover"> <thead> <th>姓名</th> <th>邮箱</th> <th>操作</th> &...
2013-11-05 10:05:00 143
转载 js添加和删除dropdownlist的值
删除var ddl = document.getElementById("ddlGroup");for (var j = 0; j < ddl.options.length; j++) { if (ddl.options[j].value == "") { ddl.options.remove(j); ...
2013-10-09 15:47:00 175
转载 dropdownlist值改变时调用js
DropDownList的OnSelectedIndexChanged方法是服务器端方法如要用需要设置AutoPostBack选项为true,并且在服务器后台写方法要调用js方法需要onchange属性,例<asp:DropDownList ID="ddlProv" onchange="change()" runat="server"> <...
2013-10-09 15:43:00 250
转载 时间类型(DataTime)赋空值
暂时只发现这一个方法如果直接Datetimetime=DBNull.Value;会报null与DataTime没有隐式转换SqlCommand cmd = SqlCommand(conn); //...... cmd.Parameters.Add( "@field1 ",SqlDbType.DateTime ); cmd.Parameters[ ...
2013-10-09 15:43:00 843
转载 button等按钮onclientclick事件失效
如果确定JS没写错第一种方法:在JS方法最后return false; 调用方法前加上return第二种方法:在JS方法最后event.returnValue=false;附加:event.returnValue=false和return false的区别前者是取消事件的处理,而后者则是返回了一个false值如果只是简单地返回false值,并不会终止其触...
2013-10-09 15:39:00 132
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人