I'm using ASP.NET and I have a link which has both onclick and onserverclick. Both are important, but I want the onclick to prevent the onserverclick running if at all possible.Here is the item I'm playing with at the moment:\[code\]<li class=" <%# ((DataRowView)Container.DataItem)["CSSClass"]%>" style="background-color: <%# ((DataRowView)Container.DataItem)["BackgroundColour"]%>"> <a id="A1" runat="server" onserverclick="LinkClick" onclick=<%# "return javascript:LinkClick('" + ((DataRowView)Container.DataItem)["Postback"] + "')" %> customid='<%# ((DataRowView)Container.DataItem)["UniqueID"]%>' href='http://stackoverflow.com/questions/12806948/<%# ((DataRowView)Container.DataItem)["PageFile"]%>'> </a> <%# ((DataRowView)Container.DataItem)["DisplayName"]%></li>\[/code\]Here's the JS I'm expecting to stop the postback:\[code\]function LinkClick(parameters) { if (parameters[0] == "False") { return false; }\[/code\]Am I missing something? Is this even possible? I know that I can prevent a normal postback by returning false in onclick, but can I stop the onserverclick?Thanks