Resubmit form in Edge browser

I have a simple one button shape and a grid. When the user clicks the button, their name and the time at which they clicked are recorded. I use the meta tag to refresh the page every 30 seconds. It works fine in IE, Chrome, and Firefox, but in Edge browsers, when it is updated, it gives the user a pop-up message to resend each time, to re-send and register them again every time.

<meta http-equiv="refresh" content="30" />
    <form id="form1" runat="server">    
    <asp:Button ID="btnSave" runat="server" Text="Pick Up"/>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="PLUSER" HeaderText="User" S 
             SortExpression="name" ItemStyle-Width="100px" />
            <asp:BoundField DataField="PLDATE" HeaderText="Date" 
             SortExpression="timeDate" ItemStyle-Width="250px" />
        </Columns>
    </asp:GridView>
    </form>

Is there a parameter or something special about the edge with respect to the meta tags?

+4
source share
2 answers

if someone else finds out why the meta tag doesn't work in Edge ...

, META Edge-.

  • :

Internet Explorer , . "", " " " " "". , -.

  1. , URL- :

    < meta http-equiv = "refresh" content = "30; URL= http://www.Stackoverflow.com" >

  2. META HTML, XHTML.

, HTML:

<meta http-equiv="refresh" content="30">

XHTML:

<meta http-equiv="refresh" content="30"> </meta>

.


, Edge. , Script Manager, Javascript : https://davidwalsh.name/meta-refresh-javascript

<script>
    ESPN_refresh=window.setTimeout(function(){window.location.href=window.location.href},900000);
</script>
<noscript>
    <meta http-equiv="refresh" content="900" />
</noscript>

JavaScript META .

+1

, asp.net , , .

HTML

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>           
    <asp:Timer ID="Timer1" runat="server"></asp:Timer>

Vb.Net

Dim MinuteCount = 0
Dim x = "off"
Dim count As Integer = 0

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If (Not IsPostBack Or x = "off") Then
        MinuteCount = 0
        Timer1.Interval = 60 * 500
        Timer1.Enabled = True
        x = "on"
    End If      
End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    x = "off"
    Label1.Text = "Checked at: " & DateTime.Now()
    checkData()
End Sub
+2

Source: https://habr.com/ru/post/1683543/


All Articles