<div id="div1" runat="server"
onclick="document.getElementById('<%=fav1.ClientID%>').click()" class="grid">
//some content
<asp:LinkButton id="fav1" runat="server" visible="false"
PostBackurl="~/someurl.aspx" />
</div>
The div is clickable and I would like it to navigate to the target page on click, but thats not happening. There are 10 such divs on page and the postbackurl for all linkbuttons are added dynamically. (I just hardcoded here to test).
Also added, the onclick property for the button, but it doesnt fire the server event too. How can I make it work?