example :my string is textbox1="12,soc,nagpur" then i want in textbox2 only=nagpur
how to do this.sugest me
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
Sudhakar ChaudharyRank #1,379 · 1.2K reputationPosted Oct 29, 2012, 10:25 PM EDT
here.
textBox1.text = "12,soc,nagpur";
string value = Textbox1.text;
string[] values = value.Split(',');
textbox1.text = values[2].ToString();
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Oct 29, 2012, 10:44 PM EDT
want last value of firts text box
VulpesRank #55 · 29.2K reputationPosted Oct 30, 2012, 3:34 AM EDT