Hi nauna,
Check this sample. now take its reference.
HTML
<asp:Label ID="lblColor" Text="" runat="server" /><br />
<asp:Label ID="lblSize" Text="" runat="server" />
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
string color = "BLK-771, XS";
string[] colors = color.Split(',');
lblColor.Text = "Color : " + colors[0].ToString();
lblSize.Text = "Size : " + colors[1].ToString();
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim color As String = "BLK-771, XS"
Dim colors As String() = color.Split(",")
lblColor.Text = "Color : " & colors(0).ToString()
lblSize.Text = "Size : " & colors(1).ToString()
End Sub
Screenshot