<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript" src="jquery-1.1.3.1.pack.js"></script>
<script language="JavaScript" type="text/javascript">
//淡入潜出GridView
function lightGridView()
{
$("#GridView1").fadeIn("fast");
$("#GridView1").fadeOut("slow");
}
$(document).ready(function(){ $("#GridView1").mouseover(function(){lightGridView();})});
//淡入潜出Button
function lightButton()
{
$("#btnLight").fadeIn("fast");
$("#btnLight").fadeOut("slow");
}
$(document).ready(function(){ $("#btnLight").mouseover(function(){lightButton();})});
</script>
</head>
<body style="text-align: center">
<form id="form1" runat="server">
<div style="text-align: center">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataKeyNames="flag" DataSourceID="SqlDataSource1"
Width="458px" Height="205px">
<Columns>
<asp:CommandField ShowEditButton="True" ShowSelectButton="True" ShowDeleteButton="True" />
<asp:BoundField DataField="flag" HeaderText="flag" InsertVisible="False" ReadOnly="True"
SortExpression="flag" />
<asp:BoundField DataField="context" HeaderText="context" SortExpression="context" />
<asp:BoundField DataField="relTime" HeaderText="relTime" SortExpression="relTime" />
</Columns>
</asp:GridView>
</div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WebShopConnectionString %>"
DeleteCommand="DELETE FROM [bbs] WHERE [flag] = @flag" InsertCommand="INSERT INTO [bbs] ([context], [relTime]) VALUES (@context, @relTime)"
SelectCommand="SELECT * FROM [bbs]" UpdateCommand="UPDATE [bbs] SET [context] = @context, [relTime] = @relTime WHERE [flag] = @flag">
<DeleteParameters>
<asp:Parameter Name="flag" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="context" Type="String" />
<asp:Parameter Name="relTime" Type="String" />
<asp:Parameter Name="flag" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="context" Type="String" />
<asp:Parameter Name="relTime" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
<input id="btnLight" style="width: 466px; height: 113px;" type="button" value="淡 入 潜 出 效 果" onclick="alert('淡入潜出效提示框!!!');"/>
</form>
</body>
</html>
浙公网安备 33010602011771号