我想從我的javascript函數調用c#函數。從javascript調用c#函數
我在我的ascx中有一個鏈接按鈕(請參閱下面的代碼)。問題是,如果你按下輸入Firefox瀏覽器不工作,但它在Internet Explorer中工作正常。
<li class="clearfix border_top">
<label for="title" class="first_column bold">Search For</label>
<div class="contactUs_details">
<input type="text" id="advanced_txtBox1" name="advanced_txtBox1" class="searchbox" runat="server" style="width:300px;" />
<asp:CheckBox ID="chkSearchBDJ" runat="server" Text="Search BDJ" CssClass="checkboxlistnoborder" />
</div>
</li>
<div class="img_SearchNow">
<asp:LinkButton ID="btnSearchNow" CausesValidation="true" runat="server" OnClick="btnSearchNow_Click"></asp:LinkButton>
</div>
我的LinkButton見上文關於這一點我已經呼籲在單擊C#的功能,但如果你在打包機上面的文本框,然後按一些文本「Enter」鍵就會自動調用函數「btnSearchNow_Click」。它在IE中工作正常,但不能在Firefox中工作。
英文?抱歉? *動脈瘤* – 2008-11-10 12:46:36
「請參閱下面的代碼」 - 在哪裏? – configurator 2008-11-10 12:50:24