Click here to Skip to main content
15,904,155 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
<asp:CheckBox ID="chkpadd" runat="server" Text="Same As Present Address" AutoPostBack ="true" oncheckedchanged="chkpadd_CheckedChanged1" />

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



When i click the CheckBox There is no data in TextBox2
please help me
Posted
Updated 19-Nov-13 1:06am
v3
Comments
agent_kruger 19-Nov-13 6:20am    
check if txtpadd1 has value or not.
CodeBlack 19-Nov-13 7:07am    
can you update your question with page load method as well ?
samit kaneriya 19-Nov-13 7:13am    
pl give both textbox HTML
♥…ЯҠ…♥ 19-Nov-13 7:45am    
try to post your code, otherwise we can't help you better
Ankit Patel(AP) 19-Nov-13 8:04am    
Change Your Check box auto-post back property true.
And your problem has solved, I hope it's work...

1 solution

Change Your Check box auto-post back property true.
And your problem has solved, I hope it's work...
 
Share this answer
 
Comments
OP has already done that. You can check the question.
The AutoPostBack ="true" property is already defined for the CheckBox.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900