单击客户端计算机中的按钮时,文本框中的文本消失了吗? [英] The text in textbox is disappear,when click the button in client machine?

查看:70
本文介绍了单击客户端计算机中的按钮时,文本框中的文本消失了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#中开发windows应用程序,在客户机中,当用户在文本框中输入文本并单击保存按钮时,给定的文本ix消失。

I'm developing windows application in c#,In client machine when user give the text in textbox and click the save button,the given text ix disappear.

推荐答案

听起来文本正在尝试保存,然后从存储(数据库,文件,无论你使用什么)中再次获取数据,但是fetch要么没有返回文本框的数据,要么数据为空,这会给出一个提示保存没有成功。



总的来说,在保存按钮中放置一个断点并逐行执行代码执行以查看实际发生的情况为什么数据会消失。



调试是你最好的朋友!
Sounds like the text is trying to be saved and then the data is fetched again from the storage (database, file, whatever you use) but the fetch either returns no data for the text box or the data is empty which would give a hint that the save didn't succeed.

So in overall, place a breakpoint in the save button and go through the code execution line by line to see what actually happens and why the data disappears.

Debugging is your best friend!


这篇关于单击客户端计算机中的按钮时,文本框中的文本消失了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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