TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
karthik parcha
NA
153
93.1k
Subtring to retreive some text from the textbox
Dec 7 2011 2:44 AM
hi
i have to get the text entered in the textbox using substring function
Example:
the text Karthik-PVC is entered in the textbox
My code:
EmpName = txtProjEmployeeCode.Text.Substring(0, txtProjEmployeeCode.Text.LastIndexOf('-'));
output:karthik
i have to get only text after the '-'
how to write code for that using substring dynamically what ever the text i there after '-'i have to retreive
plz help me
thanks
karthik
Reply
Answers (
2
)
How can i print a PDF file in windows application
Auto run program in C#.net