日期:2014-05-18 浏览次数:20422 次
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Demo4.aspx.cs" Inherits="Demo4" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>无标题页</title> <script src="js/jquery-1.2.6.min.js" type="text/javascript"></script> <script language="javascript"> $(document).ready(function(){ $("#btn").click(function(){ $("#btn").attr("disabled", "true"); }); }); </script> </head> <body> <form id="form1" runat="server"> <div> <input type="text" id="txt" runat="server" /> <input type="button" id="btn" runat="server" value="myButton" onserverclick="btn_Click" /> </div> </form> </body> </html>
------解决方案--------------------
推荐你看看这贴
http://topic.csdn.net/u/20080610/16/d65caa2b-4574-4350-a46e-08216385a6c2.html