Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
string - case insensitive
Violeta Popa
Apr 10 2013 4:08 PM
935
Reply
Hello :) I want to check is a text starts with "RO". I have this code:
if (cod.StartsWith("RO") || cod.StartsWith("ro")||cod.StartsWith("Ro")cod.StartsWith("rO"))
Is there a way to mention "RO" to be case insensitive to avoid the cod to be too long?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Automated testing to check a webpage on a site is displayed?
Deleting multiple row by selecting checkbox on Data Gridview