在後端使用C#.net的asp.net中,點擊添加後,我使用Javascript添加股票並關閉窗口(我使用window.open打開)。雖然這在其他瀏覽器中運行良好,但[在MSIE中]如果我繼續點擊添加按鈕,它會添加多個庫存條目。這真是奇怪的行爲。任何想法如何我可以克服這一點。在IE中添加多個
AddStock(sessionID, stock,perms);
string script = "window.parent.closeIFrame();";
ClientScript.RegisterStartupScript(this.GetType(), "close", script, true);
closeIFrame() is defined on the parent page.
沒有啓用javascript的用戶仍然可以點擊幾次。 – 2009-09-26 13:46:04
雅,但我們確保所有用戶都啓用了Javascript,因爲這是IT公司使用的產品。 – 2009-09-26 14:32:01