I have an ASP.NET linkbutton control on my form. I would like to use it for javascript on the client side and prevent it from posting back to the server. (I\'d like to use t
Instead of implement the attribute:
public partial class _Default : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { someID.Attributes.Add("onClick", "return false;"); }}
Use:
OnClientClick="return false;"
inside of asp:LinkButton tag