日期:2014-05-18 浏览次数:20732 次
<!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> <asp:placeholder id="MyCSS" runat="server"></asp:placeholder> <script language="javascript" type="text/javascript"> // <!CDATA[ function Button1_onclick() { document.getElementById("Button1").click(); } // ]]> </script> </head> </head> <body> <form id="form1" runat="server"> <asp:Label ID="Label1" runat="server" Text="Label" onclick="return Button1_onclick()"></asp:Label> <asp:Button ID="Button1" runat="server" Text="Button" /> </form> </body> </html>
------解决方案--------------------
不知道楼主什么意思?winform里面的label控件本来就用DoubleClick事件,你在事件里调用修改的方法就可以了!