asp.net避免输入密钥导航

时间:2010-09-09 11:50:46

标签: asp.net redirect

当用户按下asp.net页面上的回车键时,如何避免导航? 似乎它们被重定向到目录结构“Account \ AccountRcovery”中的第一页

我实际上没有任何代码可以重定向到该页面。 也可以为整个网站禁用此功能吗?因为我有很多页面需要修改。

编辑:这似乎只影响IE,在Firefox中不会发生。

这是空白页面的内容,这个内容仍然存在。

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="Wip.test" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>

1 个答案:

答案 0 :(得分:0)

问题是母版页中的按钮。当用户在显示为空的表单上按Enter键时,该按钮正在提交表单并重定向到帐户恢复。

相关问题