I'd need this to work. I have to associate to the following line of code an onclick event. I don't have a button and I can't use one. I want to use this list item to make the onclick method work
<li><a runat="server" visible="false" id="logout" onclick="logout_Click">Log Out</a></li>
C# code:
protected void logout_Click(object sender, EventArgs e)
{
Session.Clear();
Response.Redirect("~/Default.aspx");
}