非常奇怪的问题 [英] Very Strange Problem

查看:80
本文介绍了非常奇怪的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我在一个非常独特的情况下受到打击,我已经成功地将一条记录保存的消息显示在一个标签中,一旦它成功保存在数据库中,然后在诸如排序或分页之类的事件上我就完成了"string.empty"对于该标签,使其值变为空,但不为null.我应用了断点,发现其值正在为空,但是当最终页面加载时,该标签文本的值未更改,它仍显示相同的消息.记录已成功保存."
我已经做了一切可能的事情,应用了监视等等,但是似乎无法解决这个奇怪的问题,任何人都可以帮我解决这个问题.

Hello guys,I am reallt struck in a very unique condition,I have shown a record saved successfully message in a lable once it is saved successfully in the database then on events like sorting or paging i have done "string.empty" for that lable so that its value gets empty but its not getting null.I appied breakpoint and saw that its values are getting empty but when finally page loads the values of that lable text does''nt changes,it still shows the same messge "Records saved successfully."
I have done every thing possible,applied watch etc etc but can''t seem to fine this strange thing,can anyone help me with this.

推荐答案

它"所有这些都取决于您执行操作的时间:如果您期望由于按钮按下而导致的操作在页面加载过程中持续存在,那么您将大失所望!

检查:
1)标签在设计人员中的价值.
2)调用数据库插入
3)执行排序或分页事件时.

我认为您会发现插入记录的频率比您想象的要高!
It''s all going to depend on when you do things: If you are expecting something you do as the result of a button press to be persisted across a page load, then you are going to be dissapointed!

Check:
1) Value of label in the designer.
2) When you call the Database Insert
3) When you do the sort or paging events.

I think you will find that the record is being inserted more often than you think!


这篇关于非常奇怪的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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