I have two text boxes UserId and Email
If user enters UserId as Hello then i want the email text box to be filled as [email protected]
How do I achieve this?
Thanks in Advance
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Viv R4 reputationPosted Dec 23, 2015, 4:35 AM EST
Jitendra KumarRank #760 · 3K reputationPosted Jan 28, 2015, 1:34 AM EST
try below code.
aspx code:
CS code:
protected void txtUser_TextChanged(object sender, EventArgs e)
{
txtEmail.Text = txtUser.Text + "@gmail.com";
}
Vishwan Merchant6 reputationPosted Jan 28, 2015, 2:26 AM EST
I have tried that code but the value is not getting stored in email id text box, instead the value displayed in text box is txtUser.Text@gmail.com
Jitendra KumarRank #760 · 3K reputationPosted Jan 28, 2015, 3:10 AM EST
you do something wrong.
See attached page.
Jitendra KumarRank #760 · 3K reputationPosted Jan 28, 2015, 8:18 PM EST