<?xml version="1.0" encoding="UTF-8"?>
<entry>
  <category-id type="integer">1</category-id>
  <content>&lt;p&gt;Often we want to make sure a user does not click more than once on a particular function. Usually with things that write to the database or activate payment, we want to control this. You can use the following with a LinkButton or a standart asp.net Button.&lt;/p&gt;
&lt;pre name="code" class="csharp"&gt;
protected void Page_Load(object sender, EventArgs e)
{
     LinkButtonSave.Attributes.Add("OnClick", "this.disabled=true; this.onclick=function() { return false;}");
}
&lt;/pre&gt;
&lt;p&gt;Note that this needs to be called from the codebehind, usually page_load works&lt;/p&gt;</content>
  <created-at type="datetime">2009-06-30T16:29:42-07:00</created-at>
  <id type="integer">32</id>
  <title>Disable LinkButton on click</title>
  <updated-at type="datetime">2009-06-30T16:32:27-07:00</updated-at>
</entry>
