要再次显示该网页,Internet Explorer需要重新发送信息 [英] To display the webpage again, Internet Explorer needs to resend the information

查看:239
本文介绍了要再次显示该网页,Internet Explorer需要重新发送信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

How can I stop Internet Explorer to stop asking :
"To display the webpage again, Internet Explorer needs to resend the information you've previously submitted. If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click retry to display the webpage again."

I am using below code to refresh my page from a popup window:


protected void rbtnFeedback_click(object sender,EventArgs e)
    {
        DataSet ds1 = new DataSet();
        ds1 = DataAccessLayer.BindDataQuery("select * from tblLogins where UserName='" + txtFBName.Text + "' and SecretQ='" + rcbSecretQuestion1.SelectedValue.ToString()+ "' and Answer='" + txtAnswer.Text + "'");
        if ((ds1!=null )&&    ds1.Tables[0].Rows.Count >0)
        {
            string pwd = ds1.Tables[0].Rows[0]["Password"].ToString();
         
          //Response.Write("<script>alert(''"+str+"'');</script>");
         
            ScriptManager.RegisterStartupScript(this, this.GetType(), "", "alert('Your password is :" + pwd + "');", true);
        }
        else
        {
           // Response.Write("<script>alert('Your password  was not found');</script>");
            ScriptManager.RegisterStartupScript(this, this.GetType(), "", "alert('Your password  was not found');", true);
           
        }
       

    }

推荐答案

在javascript末尾返回false.
检查
[
return false at the end of javascript.
Check
[Internet-Explorer-needs-to-resend-the-information]


这篇关于要再次显示该网页,Internet Explorer需要重新发送信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆