asp.net中弹出窗口的问题 [英] Problem with popup window in asp.net

查看:78
本文介绍了asp.net中弹出窗口的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有弹出窗口.当我们可以将数据保存在弹出窗口中时.数据将添加到主页中.但是这里的问题是单击刷新按钮时.可以在主页中添加重复的数据.如何防止这种情况,而不必在主页上添加重复项.
你能帮助我吗?

Hi guys, I have popup window.When we can save the data in popup window. Data will be added in main page. But here problem is when click on the refresh button . Duplicate data can be added in main page. how to prevent that without adding duplicates in main page.
Could you help me anyone.

推荐答案



这个问题对所有初学者来说都是常见的

在这里您可以找到解决方案避免在用户刷新时插入两次ASP.NET中的页面 [将VB转换为C#转换器 [ ^ ]

希望这对您有帮助,

谢谢
-Amit Gajjar.
Hi,

This problem is common for all beginner

Here you can found the solution Avoid inserting twice when user refresh page in ASP.NET[^]

Although code is in VB but you can convert it through VB to C# Convertor[^]

Hope this will help you,

Thanks
-Amit Gajjar.


在主页中添加数据之后,仅在此处编写以下代码:

After adding the data in main page, there only, write the following coding:

Response.Redirect(Request.RawUrl)



--Amit



--Amit


这篇关于asp.net中弹出窗口的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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