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,
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ShankeyPosted Jan 11, 2011, 4:47 AM
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 ..
}
Krishna GaradPosted Jan 11, 2011, 4:44 AM