合并两个文本框数据 [英] Combine two text box datas
本文介绍了合并两个文本框数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个数字文本框,其中第一个文本框号码是从表格X填充的,不可编辑。第二个文本框是可编辑的,我可以输入数值。当我在第二个文本框中输入值并保存时,我需要在第一个和第二个文本框中组合以。分隔的值。我该怎么解决这个问题。请帮我解决这个问题。
I have two numeric text box in which for first text box number is populated from a table ''X'' and is non editable. Second text box is editable and I can enter numeric values. When I enter value in second text box and save it, I need to combine values in first and second text box separated by ".". How can I solve this. Please help me to solve this.
推荐答案
C#连接文本使用 + 运算符
C# to concate text use + operator
string CombinedValue = Textbox1.Text + "." + Textbox2.Text;
快乐编码!
:)
Happy Coding!
:)
这篇关于合并两个文本框数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文