our new blog site : http://blog.hintechnology.com
Split Example in C#
using System; public class SplitExample { public void SplitExample() { string words = "This is split example. Testing User in SharePoint 2010 "+ "user with Domain\\username "; string [] split = words.Split(new Char [] {' ', ',', '.', ':', '\t' }); foreach (string s in split) { if (s.Trim() != "") Response.Write(s); } } } // This will display following output:// This// is// split // example// Testing// User// in// SharePoint// 2010// user// with// Domain// username
Thank you for Reading This Posts.
No comments:
Post a Comment