pick text after the slash

I have one text box from which i want to pick characters which are after the slash(/).
Suppose text box value is "15/25". Then the result should be 25.
Posted by Prince Mahajan 3/23/2014 11:05:42 PM
Total Answers : 1
Answer 1
You can use the below code :
string new_code = textBox1.Text;
string str = new_code.Substring(new_code.IndexOf("/"));
label1.Text = str;
Suppose you are using this piece of code on click event of the button. Now try to enter data in textbox with slash (/) and after that click on button. You will see the result will be the text after the slash..
Keep Coding and stay in touch with StepCoder.com.
Posted by StepCoder Team 3/25/2014 6:54:40 PM
Post your answer
Sign in to your account
Your Email : 
Password :   
Forgot your password
Don't have StepCoder account ?
Create a new account
Follow me on twitter
About Me
Harpreet Singh
I began programming with C++ when i was 17. Then at the middle of my study .NET came. Then I began to read C# and VB.NET. By the time i learnt SQL and ASP.NET, and developed some websites such as news portals that are active now. Currently i am running my own Software company.
Answer these questions! If you know the answer.