防止会话中重复记录. [英] prevent duplicate record in session.

查看:72
本文介绍了防止会话中重复记录.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何防止c#中会话中的重复记录

推荐答案


能否详细说明一下您的查询..


Can you explain bit more about your query..

if (Session["sessionname"] == null) { not exist; } else { exist; }



这是您要找的东西还是其他东西?

有关会话的更多信息,请参见链接:
http://www.java2s.com/Code/ASP/Session-Cookie/StoreyourObjectinSessionC.htm [^ ]



This what you looking for or something else?

more about sessions refer link:
http://www.java2s.com/Code/ASP/Session-Cookie/StoreyourObjectinSessionC.htm[^]


会话本身存储对象,
如果您不想对象中有重复的值(例如数据表),请在插入记录之前检查记录,

为了更好地理解,请查看阿比吉特·贾纳(Abhijit jana)获奖文章.

在ASP.Net中浏览会话 [
Session itself stores objects,
if you don''t want to have duplicate value in the object (e.g datatable) then check the record before inserting to them,

For better understanding look at the award winning article of abhijit jana.

Exploring Session in ASP.Net[^]

Please vote and Accept Answer if it Helped.


这篇关于防止会话中重复记录.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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