find if there is a given substring inside a string

  • Thread starter Thread starter juli
  • Start date Start date
J

juli

How do I find if there is a given substring inside a string in asp.net ?
Thank you very much!
 
Use String.IndexOf()

If it returns -1 then the string you searched for was not found. If anything
else then it was found.
 
String.IndexOf()

How do I find if there is a given substring inside a string in asp.net ?
Thank you very much!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top