protected void CheckBox1_CheckedChanged(object sender, EventArgs e) { if (((CheckBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("CheckBox1")).Checked == true) { ((TextBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("TextBox1")).Text = ((TextBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("TextBox2")).Text; } }
<asp:CheckBox ID="CheckBox2" runat="server" Text="Click here to send textbox1 value to textbox2" OnCheckedChanged="CheckBox1_CheckedChanged" AutoPostBack="True" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)