使用c#删除asp.net中按钮clickEvent上的cachie,cookie和hiddenfield? [英] delete a cachie,cookie and hiddenfield on button clickEvent in asp.net using c#?

查看:84
本文介绍了使用c#删除asp.net中按钮clickEvent上的cachie,cookie和hiddenfield?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用C#删除asp.net中按钮clickEvent上的cachie,cookie和hiddenfield?

解决方案

这个问题毫无意义。您应该尝试发布一些代码并解释您的确切需求。这意味着编写一些代码,而不仅仅是复制和粘贴我们的答案来创建你的项目。



有一个cookie集合,你可以添加它并从中删除,在你的代码背后。隐藏字段是控件。如果将其设置为Visible = false,则不会呈现它。我不知道cachie是什么,但是浏览器缓存在客户端,你可以发出代码来尝试清除它,但你不能在C#中清除它。


在按钮点击事件下使用此选项 -

删除缓存,cookie ,hiddenfield [ #solution 1 ]

how to delete a cachie,cookie and hiddenfield on button clickEvent in asp.net using C#??

解决方案

This question makes no sense. You should try to post some code and explain your exact need. which means writing some code, not just copying and pasting our answers to create your project.

There''s a cookies collection, you can add to it and delete from it, in your code behind. A hidden field is a control. If you set it to be Visible = false, it will not be rendered. I have no idea what a cachie is, but the browser cache is on the client side, you can emit code to try to clear it, but you can''t clear it in C#.


Use this under button click event-
to delete cache,cookie,hiddenfield[#solution 1]


这篇关于使用c#删除asp.net中按钮clickEvent上的cachie,cookie和hiddenfield?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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