I'm trying to fire the link button's click event on the Div Click, but this is not working. How can this be done. Also tried with asp button. I Just need to raise a server event.
JavaScript:
function ShowModal()
{
document.getElementById('<%=lnkBtn.ClientID%>').click();
}
ASPX:
<div id="divKey" runat="server" onclick="ShowModal()">
//content..
<asp:linkButton Id="lnkBtn" runat="server" onClick="lnkBtn_Click"></asp:LinkButton>
</div>
C#:
protected void lnkBtn_Click(object sender, EventArgs e)
{
//some code
}