如何将textBox值绑定到同一页面中的另一个文本 [英] how to Bind the textBox value to another text in the same page

查看:107
本文介绍了如何将textBox值绑定到同一页面中的另一个文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< asp:CheckBox ID =chkpaddrunat =serverText =与当前地址相同AutoPostBack =trueoncheckedchanged =chkpadd_CheckedChanged1/>



<asp:CheckBox ID="chkpadd" runat="server" Text="Same As Present Address" AutoPostBack ="true" oncheckedchanged="chkpadd_CheckedChanged1" />

protected void chkpadd_CheckedChanged1(object sender, EventArgs e)
{
 if (chkpadd.Checked == true)
 {
   txtadd1.Text = txtpadd1.Text;
 }
}







当我点击CheckBox时TextBox2中没有数据

请帮帮我




When i click the CheckBox There is no data in TextBox2
please help me

推荐答案

更改您的复选框自动回复属性为真。

你的问题已经解决了,我希望它有用......
Change Your Check box auto-post back property true.
And your problem has solved, I hope it's work...


这篇关于如何将textBox值绑定到同一页面中的另一个文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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