1.  选中GridVIew的值

$("#reverse").click(function () {

//$("#checkbox[Num]").attr("checked",!($("#checkbox[Num]").attr("checked")));

var checkboxs = $("#checkbox[Num]");

for (var i = 0; i < checkboxs.length; i++) {

var checkbox = checkboxs[i];

$(checkbox).attr("checked", !$(checkbox).attr("checked"));

}

});

2.  Javascript 返回上一页:

1. history.go(-1), 返回两个页面: history.go(-2);

2. history.back().

3. window.history.forward()返回下一页

4. window.history.go(返回第几页,也可以使用访问过的URL)

例:

<a href="javascript:history.go(-1);">向上一页</a>

response.Write("<script language=javascript>")

response.Write("if(!confirm('完成任务?')){history.back();}")

response.Write("</script>")

response.Write("<script language=javascript>history.go(-1);</script>")

<a href="javascript:history.go(-1);">向上一页</a>

页面跳转:onclick="window.location.href='index.aspx'"

最新文章

  1. 无法加载 DLL“SQLite.Interop.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)
  2. Convert Sorted List to Binary Search Tree [LeetCode]
  3. PRML读书会第六章 Kernel Methods(核函数,线性回归的Dual Representations,高斯过程 ,Gaussian Processes)
  4. 委托delegate使用方法
  5. Mip-Mapping很重要
  6. Jlink下载问题
  7. win7-x64安装mysql5.7.11(官方zip版)
  8. github如何添加ssh
  9. mysql进阶(八)怎么对varchar类型排序问题
  10. &lt;TCP/IP原理&gt; (一)
  11. 关于 iOS 性能优化方面的面试题,
  12. web认证
  13. 剑指offer(java版)【转】
  14. typedef typename
  15. root权限使用vim不能修改权限
  16. ubunut下安装ibus_pinyin中文输入法
  17. 用yourls 搭建短链接地址服务
  18. js加入购物车抛物线动画
  19. Hibernate学习笔记一:项目创建与基本配置文件
  20. 使用C#的两种方式OracleClient组件和OleDB组件连接ORACLE数据库

热门文章

  1. iOS怎样获取任何App的资源图片?
  2. Netty Bootstrap(图解)|秒懂
  3. mooc课程mit 6.00.1x--problem set2解决方法
  4. 【题解】Making The Grade(DP+结论)
  5. Django+ajax+jsonp实现借口调用文本处理
  6. JAVA- continue与break与return关键字
  7. Eclipse_插件_03_反编译插件_Eclipse Class Decompiler
  8. linux 进程学习笔记-暂停进程
  9. AtCoder Grand Contest #026 A - Colorful Slimes 2
  10. 1091 Acute Stroke (30)(30 分)