title: Calling c# function from javascript
body: <p>I want to call a c# function from my javascript function.</p>
  
  <p>I have a link button in my ascx (please see the code below). The problem is that if you press enter in firefox is not working however it is working fine in internet explorer.</p>
  
  <pre><code>&lt;li class="clearfix border_top"&gt;
  &lt;label for="title" class="first_column bold"&gt;Search For&lt;/label&gt;
  &lt;div class="contactUs_details"&gt;
  &lt;input type="text" id="advanced_txtBox1" name="advanced_txtBox1" class="searchbox" runat="server" style="width:300px;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;asp:CheckBox ID="chkSearchBDJ" runat="server" Text="Search BDJ" CssClass="checkboxlistnoborder" /&gt;
  &lt;/div&gt;
  &lt;/li&gt;
  
  &lt;div class="img_SearchNow"&gt;
  &lt;asp:LinkButton ID="btnSearchNow" CausesValidation="true" runat="server" OnClick="btnSearchNow_Click"&gt;&lt;/asp:LinkButton&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have linkButton see above on which I have called on c# function on Click, But if you pree some text in above textbox and press "Enter" it should automatically call function "btnSearchNow_Click". It is working fine in IE but not working in Firefox.</p>