2014-05-16 39 views
1

我在我的aspx頁面下面的按鈕:爲什麼按一下按鈕只適用於IE

<asp:Button ID="btnTransfer" OnClick="btnTransfer_Click" runat="server" Text="Submit"/> 

在我的C#下面的代碼:

protected void btnTransfer_Click(object sender, EventArgs e) 
{ 
    Response.Redirect("~/physicians.aspx"); 
} 

在IE中:

<input type="submit" name="ctl00$FeaturedContent$btnTransfer" value="Submit" id="FeaturedContent_btnTransfer" />

在其他瀏覽器(FF,Chrome等)中:

<input type="submit" name="ctl00$FeaturedContent$btnTransfer" value="Submit" id="FeaturedContent_btnTransfer" />

它似乎只在IE中重定向,但不在FF或Chrome中。我如何解決它?

+0

當你說「它不起作用」,它回發之後不重定向還是甚至不提交? – ElGavilan

+0

是否在另一個控件或UpdatePanel中的按鈕? –

+0

無論點擊多少次,它都不會重定向到頁面。 – SearchForKnowledge

回答

0

我想你有一個避免點擊的防病毒應用程序。停用Firefox或Chrome加載項,然後重試。

相關問題