label框没出有双击事件,如何用果js 代码调用?
最好写代码,谢谢了
------解决方案--------------------------------------------------------
<asp:Label ID="Label1" runat="server" Style="left: 308px; position: absolute; top: 253px"
Text="Label" Width="189px" ondblclick="alert('ss');"></asp:Label>
------解决方案--------------------------------------------------------
<asp:Label ID="Label1" runat="server" Text="Label" BorderWidth="1"></asp:Label>
protected void Page_Load(object sender, EventArgs e)
{
this.Label1.Attributes.Add("onclick", "confirm('Hi,Insus.NET!');");
}