How can separate commas values In Asp.net.


How can separate commas values In Asp.net.



protected void Page_Load(object sender, EventArgs e)
    {
        sep_comma("kandy,deol,vineet,izhar,delhi,");

    }

    public void sep_comma(string s)
    {
        string[] words = s.Split(',');
        foreach (string word in words)
        {
            Response.Write(word + "</br>");
        }
    }


It will look like :-




Comments

Popular posts from this blog

Create and save QR code in asp.net with C#

Change text of RadGrid Header Dynamically

Telerik Radwindow Open on Button Click