title: Asp.net linkbuttons not firing their click events on disabling javascript?
body: <p>I am facing a peculiar problem in asp.net. I have a link button with following specifications.
  Linkbutton-</p>
  
  <pre><code>&lt;asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" OnClientClick="control_visible('Calendar1', 'Calendar2', 'visible')" ClientIDMode="Static"&gt;
  </code></pre>
  
  <p>OnClientClick() js function-</p>
  
  <pre><code>function control_visible(control1id,control2id, control1visibility)     //toggles visibility b/w two controls with opp visibility
  {
      document.getElementById(control1id).style.visibility = control1visibility;
  
      if (control1visibility == "visible")
      {
          document.getElementById(control2id).style.visibility = "collapse";
      }
      else        
      {
          document.getElementById(control2id).style.visibility = "visible";
      }
  
      return false;
  }
  </code></pre>
  
  <p>The code inside linkbutton is irrevelant in regard of the problem i am facing.<br />
  What seems logical is when you disable the js on your browser, then your code behind should execute normally.<br />But in above case as i disable the js, my linkbutton stops interacting with the server &amp; don't execute its code &amp; i am not even using "return" keyword in <em>OnClientClick</em> function call of linkbutton, which could possibly prevent the code from running, if it provides a "false" in the <em>onclientclick</em> function call when the js is disabled.<br />
  I don't understand...is this for a fact that upon calling a js function with js disabled, even the code-behind fails to execute or i am possibly missing something??<br /><br />
  Thanks, i hope i made it clear</p>