基于asp.net的jquery排序
我试图在asp.net中对表应用jquery排序,但我遇到了一些问题。 我尝试了基本示例,但不起作用。 下面是我的代码: 怎么了基于asp.net的jquery排序,jquery,asp.net,.net,jquery-ui-sortable,Jquery,Asp.net,.net,Jquery Ui Sortable,我试图在asp.net中对表应用jquery排序,但我遇到了一些问题。 我尝试了基本示例,但不起作用。 下面是我的代码: 怎么了 我检查了路径,这很好,因为css样式正在运行…对我来说,只需编写以下顺序就可以了,这很重要 $myTable.tablesorter; 姓 名字 电子邮件 由于 网站 史密斯 约翰 jsmith@gmail.com $50.00 http://www.jsmith.com 巴赫 直率的 fbach@yahoo.com $50.00 http://www.frank.
我检查了路径,这很好,因为css样式正在运行…对我来说,只需编写以下顺序就可以了,这很重要 $myTable.tablesorter; 姓 名字 电子邮件 由于 网站 史密斯 约翰 jsmith@gmail.com $50.00 http://www.jsmith.com 巴赫 直率的 fbach@yahoo.com $50.00 http://www.frank.com 雌鹿 杰森 jdoe@hotmail.com $100.00 http://www.jdoe.com 康威 提姆 tconway@earthlink.net $50.00 http://www.timconway.com
在tablesorter.jsnothing之前加载jquery.min.js…同样的问题…抱歉,一行不起作用,没关系!
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestJQuery.aspx.vb" Inherits="TestJQuery" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<link href="scripts/jquery.tablesorter/themes/blue/style.css" rel="stylesheet"/>
<script type="text/javascript" src="scripts/jquery-2.0.0.min.js"></script>
<script type="text/javascript" src="scripts/jquery.tablesorter/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function ()
{
alert("a")
$("#myTable").tablesorter();
alert("b")
}
);
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table id="myTable" class="tablesorter">
<thead>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Email</th>
<th>Due</th>
<th>Web Site</th>
</tr>
</thead>
<tbody>
<tr>
<td>Smith</td>
<td>John</td>
<td>jsmith@gmail.com</td>
<td>$50.00</td>
<td>http://www.jsmith.com</td>
</tr>
</tbody>
</table>
</div>
</form>
</body>
</html>