hi,
I have three textboxes.in textbox1 am going to enter "om43 sai8" in textbox2 "87billa 8".
so now in textbox3 it should display both textbox values i mean to concatenate and here it should display only alphabets.
like "omsaibilla" in textbox3 on tabout it should happen...
any idea how to do this??
AmanPosted Aug 31, 2015, 7:40 AM
I am also embedding the source code so that you can download it .
If you have any query feel free to ask (Download Source Code)
Also accept it as an answer if it helps.
Upendra Pratap ShahiPosted Aug 14, 2015, 3:53 AM
Upendra Pratap ShahiPosted Aug 13, 2015, 5:16 AM
Sumit JoshiPosted Aug 13, 2015, 4:53 AM
Sumit JoshiPosted Aug 13, 2015, 4:52 AM
SreenishPosted Aug 13, 2015, 4:44 AM
Upendra Pratap ShahiPosted Aug 13, 2015, 4:42 AM
SreenishPosted Aug 13, 2015, 4:33 AM
SreenishPosted Aug 13, 2015, 4:33 AM
Rahul PrajapatPosted Aug 13, 2015, 3:59 AM
Upendra Pratap ShahiPosted Aug 13, 2015, 3:46 AM
Rajeesh MenothPosted Aug 13, 2015, 3:35 AM
SreenishPosted Aug 13, 2015, 3:21 AM
Rajeesh MenothPosted Aug 13, 2015, 3:19 AM
SreenishPosted Aug 13, 2015, 3:16 AM
Rajeesh MenothPosted Aug 13, 2015, 3:14 AM
SreenishPosted Aug 13, 2015, 2:45 AM
Sumit JoshiPosted Aug 13, 2015, 2:37 AM
{
}
Upendra Pratap ShahiPosted Aug 13, 2015, 1:13 AM
Jignesh TrivediPosted Aug 13, 2015, 12:24 AM
Hi,
you can also use Regex to remove number from the string
protected void btnOk_Click(object sender, EventArgs e)
{
TextBox3.Text= Regex.Replace(TextBox1.Text, "[0-9]", "") + Regex.Replace(TextBox2.Text, "[0-9]", "");
}
hope this will help you.
Rahul PrajapatPosted Aug 12, 2015, 9:35 PM
Rahul PrajapatPosted Aug 12, 2015, 9:11 PM
{
string str= TextBox1.Text + TextBox2.Text;
foreach (char c in str)
{
if (!char.IsDigit(c))
TextBox3.Text += c;
}
}
Upendra Pratap ShahiPosted Aug 12, 2015, 6:04 AM
protected void btnok_Click(object sender, EventArgs e)
{
Hemlata KushwahaPosted Aug 12, 2015, 6:00 AM
SreenishPosted Aug 12, 2015, 5:42 AM
Hemlata KushwahaPosted Aug 12, 2015, 5:28 AM