I am trying to handle a click in a div in my code:
<div id="divSearch" runat="server" class="box" onserverclick="aaa">Search</div>
and
protected void aaa(object sender, EventArgs e) { Response.Redirect("~/Search.aspx"); }
It just doesn't work. Any ideas?
(I know this is not the best practice, but I'm just experimenting)
aboh
source share