c# - Split a string on a string not a character -


I want to split a gridview line on an html tag. How can I do this preferably at C #?

  e.row.cells [1]. Lesson The sample ("htmltag")  

yes

  String Split (string [], string split option)  

or

  string. Split (string [], int, StringSplitOptions) Example:  
  var split = e.row.cells [1] .ext.plit (new [] {"& Lt; / b & gt;"}, string split option. RemoveEmptyEntries);  

But pay attention to Strixveraria's comment above. Parsing the HTML is very bad, unless you're a specialist offload that works for someone else


Comments

Popular posts from this blog

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -