在没有ViewState的回发过程中保留数据......

编程入门 行业动态 更新时间:2024-10-25 21:25:09
本文介绍了在没有ViewState的回发过程中保留数据......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要保留Asp.Net页面中HTML内容的回发之间的数据,而无需使用viewstate,session,缓存或隐藏字段. 我有什么选择?

I need to preserve the data between postbacks for HTML content in an Asp.Net page without using viewstate, sessions, caching or hidden fields. What are my options?

推荐答案

如果您不关心安全性,则可以考虑查询字符串,但是可以存储的数据大小是有限制的. 或 您也可以考虑使用cookie,以在请求之间存储数据,但这将存储在客户端. 希望对您有所帮助!. 问候, -Vinayak Hi, If security is not your concern, you can think about the query string, However there is a limit in terms of the size of the data you can store. Or You can also think about the cookies, to store the data between the request, but this will be stored at the client side. I hope this helps!. Regards, -Vinayak

好吧,您几乎消灭了那里的所有选择!将其存储在XML文件中吗?还是在数据库中? 您要这样做的原因是什么? Well you pretty much wiped out every choice there! Store it in an XML file? Or in a database, perhaps? What is your reason for wanting to do this?

在这里看看: ASP.NET状态管理概述 [ ^ ] 选择适合您的一个. Have a look here: ASP.NET State Management Overview[^] Pick the one that suits you.

更多推荐

在没有ViewState的回发过程中保留数据......

本文发布于:2023-07-22 04:05:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1183999.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:过程中   数据   ViewState

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!