如何在asp.net中使用cookie隐藏弹出窗口 [英] how to hide the popup window using cookies in asp.net

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

问题描述

大家好,

我在使用c#的asp.net中遇到过cookie的概念。

我需要在我的网站上找到解决方案。



我曾经弹出一个窗口,而用户可以在第一时间访问我的网站。



我的问题是:



我不想再次显示弹出窗口,如果同一个用户第三次进入我的网站。

i尝试在谷歌和其他论坛搜索此代码,但我无法得到这个。

所以可以做饼干或其他一些你有其他选择吗?

请给我一个解决方案。




注意:



对于一个用户只能看到我弹出窗口的两倍,他不想在第三次进入时看到弹出窗口。



提前感谢...





问候,

stellus。

解决方案

你会在这里找到一个好样本:



ASP.NET Cookie概述。

Hi all,
i have come across the concept of cookies in asp.net with c#.
i need a solution on my website.

i used to popup one window, while user's can access my website at first time.

my question is:

i don't want to show the popup window again, if the same user comes in the third time of my website.
i trying to search this code in google and other forums but i couldn't get this one.
So is it possible to do it cookies or else some other option you have?
please drop me a solution for it.


note:

for one user can see only two times of my popup window, he don't want to see the popup window while coming in the third time.

thanks in advance...


with regards,
stellus.

解决方案

You'll find a good sample here:

ASP.NET Cookies Overview.


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

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