Click here to Skip to main content
15,906,567 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i need to give onclick event to a label

i have found some way to do it... but its not worked.. and i cant click labels?
saying "<the server="" tag="" is="" not="" well="" formed="">"


Code :-

ASP.NET
<asp:Label ID="Label1" runat="server" Text="Home" OnClientClick="window.open('Default.aspx', 'Default')"></asp:Label>
Posted
Updated 22-Nov-13 16:03pm
v2
Comments
thatraja 23-Nov-13 2:18am    
why do you want click event for labels?

1 solution

Why don't u use client-code using Jquery or Javascript???????
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900