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

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -