hai,
is it able to give a click event to the label (ie) if i click a label some functions will be perform,how can i do this,
Thank u,
How can i give the click event to label in asp.net
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Krishna GaradRank #191 · 12.8K reputationPosted Jan 10, 2011, 11:44 PM EST
ShankeyRank #972 · 2.1K reputationPosted Jan 10, 2011, 11:47 PM EST
Hi,
In aspx of page create a lable , onclick event of that label just call __doPostBack(); method with event target it works similar to the OnClick Event<asp:Label ID="Label1" runat="server" Text="This is a Test Label " onclick="__doPostBack('ClickEvent' )" />
// in page load Event of ASPX.CS
if (Request["__EVENTTARGET"] == "ClickEvent") {
Label_Onclick();
}
private void Label_Onclick( ){
// write the code to be executed in OnClick Event ..
}