To make sure the event handler is spelled correctly, I usually have Visual Studio to create an event for me. However, I cannot find a way to do this with the div, and I tried to print it myself to no avail. Is this even possible without writing javascript? (I saw similar questions, but could not find anything that suited my needs).
Edit: Basically, I have an exit logo disguised as a button for the user. When they click on it, I want the following to happen:
protected void LogOff_Click(object sender, EventArgs e) { FormsAuthentication.SignOut(); Session.Abandon();
Here where I fire this event:
<a href="Log_In.aspx"><span class="MenuItem" runat="server" onclick="LogOff_Click">Log Off</span></a>
Chris source share